Questions tagged [azure-ad-graph-api]

The Azure Active Directory (AD) Graph API is an OData 3.0 compliant service that you can use to read and modify objects such as users, groups, and contacts in a tenant.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

Custom Connector Error "The length of the query string for this request exceeds the configured MAXQueryStringLength value"

I want to create a custom connector which connect to the Graph API to get all users. So i created a new custom connector which uses the OAthu 2.0 and i pass the client ID and Client server. but when i ...
user avatar
  • 1,028
0 votes
1 answer
47 views

Guest User access to Tenants Graph API

I am currently facing an issue with a requirement that was presented to me, and i would like to ask you guys on possible ways of solving it. The requirement is to enable External/Guest users to have ...
user avatar
  • 195
0 votes
0 answers
32 views

MS Graph Client not working as a SPFX tab in Desktop Teams

Is there any way as I am able to use Graph API in SPFX webpart which is working fine in sharepoint page, Teams tab in Microsoft teams Browser verson Failed Ms Graph Client to call Graph API as a SPFX ...
user avatar
0 votes
1 answer
61 views

Graph API call from SPFX tab with MS Graph Client

Can we call Graph API directly through MS Graph Client for SPFX tab in team Desktop?? Here is the sample of git which call Graph API directly in teams tab without any authentication flow or access ...
user avatar
0 votes
1 answer
164 views

Post Team Chat Messages using Graph API

Not able to post message in teams chat using Graph API in SPFX using Token but able to get chats by using token Getting error in console Requested API is not supported in application-only context ...
user avatar
0 votes
1 answer
29 views

Error insufficient privilege's to complete operation - power automate with MS Graph

I would like to use the HTTP premium connector to get Office 365 user licenses for users using graph. I have followed similar articles here But when I run my flow i keep getting error : insufficient ...
user avatar
  • 4,100
0 votes
1 answer
57 views

Graph API unauthorized error for specific user only

All the permission are given , this API is working fine for other users Below is the screenshot of Graph explorer calling this API and getting unauthorized error This API was working fine but after ...
user avatar
0 votes
1 answer
17 views

Bulk User profile updates using CSOM

I have an Active Directory sync app which is using for internal purpose and its saving the data to SQL table feeding from Azure AD via Graph API. Along with its basic functionality, we are updating ...
user avatar
  • 395
1 vote
0 answers
541 views

Remove user photo for User

I have a requirement to remove the user photo from Azure AD User profile. I checked for MS Graph APIs for User Photos. But as far as I know, MS Graph APIs are only available to add/upload photo. There ...
user avatar
1 vote
0 answers
111 views

Custom file handler for SharePoint using azure AD enterprise application addin

I am trying to create a custom file handler add-in for SharePoint online just like 'Adobe Document Cloud', I will be opening PDF type files in my own cloud viewer. I followed the steps in https://docs....
user avatar
  • 559
0 votes
1 answer
977 views

Fetching Specific User's Profile Photo via Graph API in SPFX

How can we fetch a user profile photo through Graph API and display into Web part in SPFX? Here is my function to call Graph API to fetch Specific user's Profile Photo filtering through their ...
user avatar
1 vote
0 answers
30 views

GraphAPI send invitation to external/guest user for a specific SharePoint site

Language: JavaScript - MSAL library Scope: GraphAPI Is there a way to send an invitation to an external user thorough GraphAPI that will be valid only for a specific site. Currently I am using the ...
user avatar
  • 187
1 vote
0 answers
40 views

Cross domain call using Graph API

I saw an article that we cannot do cross domain calls with SharePoint Rest API Updating SharePoint item using REST API from outside of SharePoint. In my case, my app is hosted in azure web app. The ...
user avatar
1 vote
3 answers
45 views

SP Online usage report expose users visiting a site

Asking if there is a way to see on who are the specific users who viewed a site? Currently I am only seeing Counts as a report. We are targeting to create a report that can also expose the users who ...
user avatar
0 votes
2 answers
512 views

Give read permission to Particular site instead of Files.Read.All in Microsoft Graph Api permissions

In the Azure AD app registration, I was trying to grant File read permission to the App that I created, however it only has Fies.Read.All which gives read permission to all sites which is way to broad ...
user avatar
0 votes
1 answer
581 views

Get all managers for a user - company hierarchy structure

How to get a list of all managers for a users? Example: User A reports to user B User B reports to user C User C reports to user D (CEO) and top of the hierarchy. By giving user A I should get: [B,...
user avatar
0 votes
1 answer
1k views

How to grant MS Graph's User.Read.All privilege to any SharePoint Online user through an Azure App?

In a SharePoint Online (SPO) environment, I am trying to let any (non-admin) user query Microsoft Graph API information that requires the User.Read.All permission. => The aim is to make my own ...
user avatar
0 votes
1 answer
399 views

Make a Zip archive by clicking a button from PowerApps

It will be great if you can select multiple items in a SharePoint Library an make a Zip archive by clicking a button from powerApps in SharePoint Online. To download or Send to OneDrive or something ...
user avatar
  • 616
2 votes
1 answer
1k views

Getting list of followed sites for a specific user with Graph API

There is an undocumented API /_vti_bin/homeapi.ashx/sites/followed that returns the list of followed sites for the currently logged in user. This one does not seem to be useful due to permission-...
user avatar
0 votes
1 answer
162 views

Need help on building Sharepoint Global search Query URI

I am trying to search a file by passing a query text. When i am trying in a specific Site using https://graph.microsoft.com/v1.0/drives/b!l17-JY94D0CQp-2TBvsujaBLMUF2WrJHp5VylCDZThrZfpCdF-7uQ6MRp6t-...
user avatar
0 votes
1 answer
114 views

Using Bing Custom Search to integrate results from Bing for Business

Team, I have gone through the articles for Microsoft search for bing.com. It says we have to enable few features in Azure. Once we have configured in Azure portal through orgnaization login we can ...
user avatar
1 vote
0 answers
28 views

Get AccessToken to GetList In Sharepoint

I used sharepoint office 365 and I tried to get list item from sharepoint through postman. I follow the steps in these links: https://medium.com/@anoopt/accessing-sharepoint-data-using-postman-...
user avatar
1 vote
1 answer
966 views

Access Token Api - Getting Unauthorized error when consume/used from SharePoint Hosted add-in

I want Access token in sharepoint Hosted addin in order to consume Microsoft Graph Api. When I hit Access Token Api (https://login.microsoftonline.com/dimensiondata2.onmicrosoft.com/oauth2/token) ...
user avatar
0 votes
0 answers
309 views

Access SharePoint List using Client ID

I am accessing SharePoint online list data using the following code but i get the following error. The remote server returned an error: (403) Forbidden. The web forms application is running in ...
user avatar
1 vote
1 answer
1k views

microsoft graph api for share point to get attachment

I made a call like https://graph.microsoft.com/beta/sites/4development106.sharepoint.com:/sites/DBSchenker:/lists/OEC_Docs?select=id,name,lastModifiedDateTime&expand=items(expand=fields(select=...
user avatar
  • 183
1 vote
0 answers
40 views

Microsoft Graph call requesting Company Administrator

In the context of automating A-AD invitations via a dedicated Azure hosted web application, one of our calls is making the call below to the Graph API (leveraging Microsoft.Graph & Microsoft.Graph....
user avatar
0 votes
2 answers
497 views

How to retrieve LinkingUri of a file in Sharepoint using Graph API

I have been able to use the Graph API to query the list of items in a Sharepoint Item https://graph.microsoft.com/v1.0/sites/root/lists/d7689e2b-941a-4cd3-bb24-55cddee54294/items However I would ...
user avatar
3 votes
1 answer
753 views

MS Graph API to access SPO with Powershell

I want to automate one task in Office 365 by using powershell and for this I registered an app in AAD (V2 endpoint https://apps.dev.microsoft.com) and given access to MS Graph API with permissions "...
user avatar
0 votes
1 answer
383 views

How to Call 3rd party API using Azure function and display in SharePoint online Site using SPFx?

I have create one azure function to call 3rd party API and used application ID in SPFx webpart but when on 'gulp serve' it shows error. I have tried in both team site as well as developer site. I am ...
user avatar
  • 616
1 vote
1 answer
2k views

How we retrieve all groups and user from Active directory using client side code in SharePoint Online?

I am not getting domain groups /security groups or groups created in azure using rest Api. Is there any other method or approach to check users from groups in Active directory.
user avatar
  • 616
0 votes
1 answer
46 views

Azure AD - Only few APIs available in app

We are creating an App in Azure AD for our product. The app will be multi tenant app which customers can grant access to. We try to create App in portal.azure.com, in our dev environment we created ...
user avatar
3 votes
0 answers
145 views

AAD registered Azure Functions + GraphAPI + SharePoint Online?

If my Azure function app and SPO are registered in the same AAD can GraphAPI Delegated be used to write to SPO Lists as the calling user without additional authentication libraries or steps? White ...
user avatar
  • 1,299
2 votes
2 answers
11k views

How to upload a document in a SharePoint list using Graph API

We have been trying to add a document to a list item using Graph API but are being thrown a 400 error :( We have the access token and can query the list in question without any problem. Below is the ...
user avatar
3 votes
0 answers
480 views

How do I get to an AzureAD group members from a SharePoint LoginName using the graph?

I am trying to use the graph to find all users in a SharePoint group on O365. The SharePoint Group contains Azure AD groups. The LoginName for one of these Azure AD groups within a SharePoint group ...
user avatar
  • 1,254
4 votes
2 answers
6k views

How can i create a staff directory (SharePoint Online)?

I have been doing some research and thinking of the best approach and some limitations.I came across an approach in which syncing the user profile and azure AD which then syncs to some sql azure(This ...
user avatar
  • 4,100
6 votes
1 answer
669 views

Unable to call graph API from SharePoint page

I am trying to call the graph API for fetching user profile information. The blog post I followed is: Extending SharePoint with ADAL and the Microsoft Graph API My AAD app config is like: URL: ...
user avatar
  • 881
3 votes
0 answers
479 views

Get list of Azure Active Directory Client Users in provider hosted app SharePoint online

I am trying to get Azure active directory users from provider hosted app with following code: private void bindUsers() { ActiveDirectoryClient client = AuthenticationHelper....
user avatar
  • 3,207
0 votes
1 answer
87 views

User Creation Problem in AAD

newUser.DisplayName = objUser.DisplayName; newUser.UserPrincipalName = objUser.UserPrincipalName; newUser.AccountEnabled = true; newUser.MailNickname = "...
user avatar