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
1 answer
438 views

How to add @odata.nextLink in graph api request

I've a service to get all users from Azure AD. public getAllUsers(): Promise<Array<Person>> { return graph .users .select("displayName", "accountEnabled"...
Propool's user avatar
  • 37
0 votes
0 answers
27 views

Is there any work around to get Graph API reports anonymized data ("DisplayName,"URL","UserPrincipalName") with privacy setting enabled.?

We are generating custom report for all the onedrive users storage data using Graph API("https://graph.microsoft.com/v1.0/reports/getOneDriveUsageAccountDetail"). We are able to get this ...
devsiva's user avatar
  • 35
0 votes
1 answer
316 views

Is it possible to get the Members group of a specific site in SharePoint using the Graph API and then add or remove a member?

I am trying to manipulate the members of a site in SharePoint using Graph API. I want to be able to get the members group of a specific Site using the site id. Then I want to be able to add/remove ...
Sigmundur's user avatar
  • 115
0 votes
1 answer
424 views

Moving a DriveItem from folder to the root of the drive in SharePoint Graph API

I have managed to move a DriveItem between folders without problems using this method: public DriveItem MoveDriveItem(string siteId, string sourceItemId, string destinationItemId) { var driveItem =...
Sigmundur's user avatar
  • 115
0 votes
1 answer
196 views

Create Azure AD App Only to authenticate our asp.net core console application

I want to create an Azure AD App Only to authenticate our console application which run on schedule bases and update some SharePoint online sites' lists and libraries. now i am following those steps @ ...
John John's user avatar
0 votes
1 answer
1k views

I can get M365 user information using Graph but I can't get their profile picture

I have created an SPFx web part (no framework, SharePoint Online) which will show all the members of a given group. It displays their name, email, job title etc ... Is it possible to show their ...
Pete Whelan's user avatar
0 votes
1 answer
487 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 ...
jimas13's user avatar
  • 318
0 votes
1 answer
989 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 ...
abhishek23 Negi's user avatar
0 votes
1 answer
2k 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 ...
abhishek23 Negi's user avatar
0 votes
1 answer
424 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 ...
naijacoder's user avatar
  • 4,232
0 votes
1 answer
303 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 ...
abhishek23 Negi's user avatar
0 votes
1 answer
22 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 ...
MAC's user avatar
  • 395
1 vote
1 answer
2k 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 ...
Dikesh Gandhi's user avatar
1 vote
0 answers
315 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....
user4205's user avatar
  • 571
0 votes
1 answer
2k 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 ...
abhishek23 Negi's user avatar
1 vote
0 answers
80 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 ...
JohnRambo's user avatar
  • 187
1 vote
0 answers
92 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 ...
Abhishek's user avatar
1 vote
3 answers
103 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 ...
John Louie Chan's user avatar
0 votes
2 answers
839 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 ...
Vignesh Subramanian's user avatar
0 votes
1 answer
2k 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,...
Murilo Santana's user avatar
0 votes
1 answer
2k 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 ...
Ashor Livs's user avatar
0 votes
1 answer
661 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 ...
Akshay's user avatar
  • 616
3 votes
1 answer
2k 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-...
Denis Molodtsov's user avatar
0 votes
1 answer
214 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-...
Abdul Azeez's user avatar
0 votes
1 answer
244 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 ...
Dhanasekaran G's user avatar
1 vote
0 answers
33 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-...
Turki BinTalib's user avatar
1 vote
1 answer
1k 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) ...
Amardeep Gupta's user avatar
0 votes
0 answers
432 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 ...
user1339913's user avatar
1 vote
1 answer
2k 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=...
Vik's user avatar
  • 183
1 vote
0 answers
46 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....
Marius Constantinescu's user avatar
0 votes
2 answers
710 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 ...
Codecrasher99's user avatar
3 votes
1 answer
811 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 "...
Prashant Gupta's user avatar
0 votes
1 answer
476 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 ...
Akshay's user avatar
  • 616
1 vote
1 answer
3k 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.
Akshay's user avatar
  • 616
0 votes
1 answer
48 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 ...
Nitin Khubani's user avatar
3 votes
0 answers
148 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 ...
Hell.Bent's user avatar
  • 1,299
2 votes
2 answers
13k 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 ...
Muhammad Khurram Bhatti's user avatar
3 votes
0 answers
672 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 ...
RussGove's 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 ...
naijacoder's user avatar
  • 4,232
6 votes
1 answer
698 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: ...
Ashish's user avatar
  • 881
3 votes
0 answers
507 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....
Ronak Patel's user avatar
  • 3,251
0 votes
1 answer
88 views

User Creation Problem in AAD

newUser.DisplayName = objUser.DisplayName; newUser.UserPrincipalName = objUser.UserPrincipalName; newUser.AccountEnabled = true; newUser.MailNickname = "...
Code Consult's user avatar