Questions tagged [microsoft-graph]

Questions that relate to the Microsoft Graph developer platform.

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

Get Site Collection Admins using Graph Api

I am trying to get site collection admin using Graph API, tried below query Query: https://graph.microsoft.com/beta/sites/{Site-id}?$select=*,drive&$expand=drive but I am getting single user in ...
0
votes
0answers
8 views

Teams Personal App Development

I was developed a teams personal app with "Teams ToolKit". The app is working well in the web version of Teams. But In desktop and Mobile client not working properly. My personal app ...
0
votes
1answer
12 views

Display sharepoint file in iframe on custom website

I would like to use this https://docs.microsoft.com/en-us/graph/api/driveitem-createlink?view=graph-rest-1.0&tabs=http#creating-embeddable-links and display webHtml in my website. I'm trying ...
0
votes
0answers
8 views

A provided field name ("_LikeCount"and "_CommentCount") is not recognized Graph Explorer

Hi i am trying to sort the result of my query by _LikeCount or _CommentCount of the Site Pages however i always got "A Provided field is not recognize" , any help is appreciated why it ...
0
votes
0answers
37 views

Unable to create Quick links web part on modern page JSON issue

We are using /pages beta endpoint to create modern page and then add few web parts. We are successful in adding List and Text web part. However when we are adding quick links web part, we see below ...
0
votes
1answer
20 views

How to get notified when a new list or library has been created?

We need to react to new document libraries and/or lists being created in SharePoint sites. Is there a way to get notified when this happens? Graph change notifications currently only seem to exist for ...
0
votes
1answer
27 views

IS there any way to create tasks in particular Channel of teams using Microsoft Graph API

I want to create a spfx webpart to create a tasks in the teams channel IS there any API for creating tasks in teams channel Below is the image of my channel Task tab I am new to Graph API Thanks in ...
0
votes
2answers
25 views

https://graph.microsoft.com/v1.0/users returns a 403 Authorization_RequestDenied

I have an SPFX application deployed on SharePoint online that requires to get the users of a SharePoint site collection. To do that I used the PNP Graph library using the JavaScript command graph....
0
votes
0answers
15 views

How to load Organizational Site Template in Sharepoint

As below image I can able to set template from Microsoft or Organization BY clicking Settings-> 'Apply a Site Template'. Is there way to add custom template for my Organization ? such as using ...
0
votes
0answers
13 views

Graph API url to target a specific file in a specific site

Let's say I have a file located in https://mycorp.sharepoint.com/sites/somesite/Shared documents/General/MyFolder/myfile.xlsx. How to reach this file using a graph request ? I tried : https://graph....
0
votes
0answers
31 views

Difference between MS Graph API and SharePoint REST API in filtering

While working with MS Graph I noticed that if I need to filter list items by custom fields, I had to make this field indexed, or work with header attribute: Prefer: allowthrottleablequeries or Prefer: ...
1
vote
1answer
45 views

Get all site collections listed in SharePoint Admin center using Rest / Search / Graph api

Does anyone know how to fetch all site collections from my SharePoint admin center by using rest api / search api / graph api? I have tired using search and graph api : let query = SearchQueryBuilder(&...
1
vote
1answer
52 views

Is there a client API to manage user's alerts for document libraries/files?

In SharePoint users can use the "Alert me" function to get notified of file changes in a document library (or single files): Is there a client API to set those alerts? E.g. from a ...
0
votes
1answer
54 views

PnP Cmdlets / Provisioning: What are the minimal required permissions for basic SharePoint operations?

So far I mostly used PnP provisioning with interactive login (=a user logs in) which worked fine. I now want to PnP-provision some folders and content types using application permissions with the ...
0
votes
0answers
16 views

Show all meetings in the tenant that are owned by a group

When you post a meeting in a teams channel, it is automatically owned by the group behind the channel. I would like to display all of these meetings in the tenant to my users. Currently there is a ...
0
votes
1answer
88 views

Graph SDK C# - PageIterator.IterateAsync() - Invalid filter clause

I am calling Graph with the SDK in C#, my initial request works fine and I get 200 results but the iterator returns an error with an invalid filter clause. The initial call with the filter works ...
1
vote
0answers
118 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 ...
1
vote
1answer
41 views

Unable to upload file to specific SharePoint drive,

I am trying to upload a file to SharePoint drive using graph API. I am doing OAuth using the below-mentioned link: GET https://login.microsoftonline.com/{TENANT_ID}/oauth2/v2.0/authorize?client_id={...
0
votes
1answer
31 views

Graph DriveItem returned WebUrl format different for .txt and .docx

I am currently using a delta query to retrieve drive items for my drive e.g. var delta = await client .Sites["siteId"] .Drives["driveId"] ...
1
vote
1answer
166 views

Adding custom column to a SharePoint library using Graph API

I want to be able to add a custom column to a SharePoint library using Graph API. I was able to create the library using article https://docs.microsoft.com/en-us/graph/api/list-create?view=graph-rest-...
0
votes
0answers
19 views

Graph API using JSON BATCH request t to get recent files for a specific document library

Is there a way to get recent files from a specific document libraries in a site collection? I tried https://graph.microsoft.com/beta/me/insights/used But I wasn't able to use filter to get the ...
3
votes
1answer
120 views

Get members of a private channel in Microsoft Teams

Connect-SPOService -Url https://site-admin.sharepoint.com $privateSites = Get-SPOSite | Where-Object -Property Template -eq "TEAMCHANNEL#0" Any attempt to get the list of members for a ...
1
vote
1answer
117 views

Multiple webpart with MGT Control not working in single page in React SPFX Sharepoint

I have used MGT Person Control in my two SPFx web parts. If I add the single web part on one page and another web part in another page, both web parts are working properly. And if I add both the web ...
1
vote
0answers
19 views

Get recently added / updated users from Azure Active Directory

I want to fetch all the users from Azure Active Directory who are recently modified/added using Graph API SDK. I tried to search for the lastModified, or Modified property which returns the last ...
0
votes
1answer
77 views

What is the algorithm behind My News in SharePoint app bar?

Could you please tell me what is the algorithm behind My News in SharePoint app bar, which has been introduced recently.
0
votes
0answers
294 views

help with error ClientAuthError: User login is required. For silent calls, request must contain either sid or login_hint

I'm using MSAL.js to acquire a silent token and it works ok when i login See my snippet code below var userid = _spPageContextInfo.userId; //console.log(email); var upn = getUserEmailByLoginName(...
0
votes
2answers
579 views

what filtering options are supported MS graph api (List used) - Javascript?

I'm working on a script and I can call the below Graph API endpoint. https://graph.microsoft.com/v1.0/me/insights/used without any issue. But I would like to use filter like so: var srchStr = "...
0
votes
0answers
81 views

SharePoint Online: How to retrieve Hub site usage analytics?

When clicking Site Usage for a hub site... ...you can opt to see Hub usage data: The Site usage analytics page then calls the oneDrive.getHubAnalytics and oneDrive.getHubTopSitesByAccessActivities ...
0
votes
0answers
38 views

Getting access denied when using this graph api "https://graph.microsoft.com/v1.0/me/insights/used"

Not sure if someone can guide me here. I can use all other endpoints apart from this one "https://graph.microsoft.com/v1.0/me/insights/used" The doco here I have tried everything and i'm 100%...
0
votes
0answers
24 views

How to get drive id to get the Preview of thumbnail in SP Online

Microsoft has moved recently the thumbnail previews to below URL it seems https://contosa.sharepoint.com/_api/v2.1/drives/b!VGp7pTD04UKFFtBxC1Z86EZgQRFXsm9AnYthfHIzY61Tjn1hsCRiTqJ5pIMWmEof/items/...
0
votes
2answers
159 views

Authenticate via Graph API without an app secret or an app certificate?

Sorry for the lazy and not well formulated question. Is it possible to authenticate via Graph API without an app secret or an app certificate via PowerShell withiut being a tenant admin? I was on a ...
0
votes
1answer
28 views

What query to use ti get recent files from a particular document library - Graph Api

I'm wondering if anyone has had to do a similar thing to be able to get all recent files from a particular site collection of sharepoint library To get lists used i know i can use this - https://graph....
0
votes
0answers
16 views

Where do i add Redirect URIs for Appilcation Registration

I have tried everything i could to make my request for an access token and to use graph api work. But i keep getting error AADSTS50011: The reply address does not match the reply addresses configured” ...
0
votes
0answers
160 views

Error Access to XMLHttpRequest at "http" from origin has been blocked by CORS policy - Graph API -

I would like to retrieve list of recent files from a particular document library or site for the logged on user This is using a content editor on a sharepoint classic site When i run the code below i ...
0
votes
0answers
128 views

Update members of SharePoint Group by using MS Graph API

Spent already a fair amount of time trying to figure this one out: Is it possible to create a SPO site collection and then update the members in a group in a SPO site collection by using an Azure AD ...
1
vote
1answer
104 views

How to get the user's group(s) for sharepoint online site usig Microsoft Graph APIs

I am trying to get the user's group(s) for SharePoint online site using Microsoft Graph APIs. But I am not getting any equivalent graph API for the below SharePoint rest API : /_api/web/SiteUsers/...
0
votes
1answer
184 views

How to call graph API to read SP list items from SPFx in SP Online?

I'm new to graph API and trying to use graph API to read SP list items from a custom list using the current user's rights (not service account). But I'm getting an error. I have this so far: In the ...
0
votes
0answers
29 views

Programmatically upload documents to shared folders from an external account

I am having this use case: Account A in tenant-1 Account B in tenant-2 B shares a folder within a SharePoint site of tenant-2 to A, with write permission. A then can see the shared folder within ...
0
votes
1answer
69 views

External Data in SharePoint online modern

How to get External Data into SharePoint online? What are the possible ways to get the external data using api and show the data in Search How to show external data in SharePoint Search?
0
votes
0answers
15 views

How do I get the web url from webparts?

I'm using the Graph API to fetch the pages from my site - I'm trying to use it as a CMS to provide content for another site. I've got all the authentication and display bits set up and working already ...
0
votes
0answers
77 views

How to use SharePoint rest API with Client ID and Client Secret in C# to get site collection?

Is there any way to connect SharePoint Rest API with Client Credentials in C# to get site classifications? I previously used Graph API to get those collections, but I need the same using SharePoint ...
1
vote
1answer
30 views

Fetch an image from OneDrive Business by ID using Graph API using PowerShell

I'm attempting to retrieve an image from my OneDrive via the Microsoft Graph API. I made sure to have all the necessary permissions to do so. This has worked in the past, but now it's returning error ...
0
votes
2answers
59 views

How can I get parent guid of an item?

I have a list with items in SharePoint Online. There many items and their structure look like a tree. list/ itemA/ itemB/ itemBa/ itemX itemBb/ ...
0
votes
1answer
400 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 ...
0
votes
0answers
110 views

Authentication in Team Tab not working

I am trying to authenticate in microsoft team using Azure active directory. I am able to get access token too. but after receiving the access token it is not redirecting to Microsoft Team. Below are ...
0
votes
1answer
268 views

Using Filter Query in Graph API to fetch the particular users

Current code: public render(): void { this.context.msGraphClientFactory .getClient() .then((graphclient:MSGraphClient): void=>{ graphclient .api('/users') .filter('Department eq IT') .get(...
1
vote
1answer
438 views

List Permissions for Sharepoint Sites Using GraphAPI

I'm trying to retrieve site permissions for SharePoint sites using GraphAPI. I've got the API working and can list sites, subsites, lists, drives, etc. However, when I run /sites/{siteID}/permissions ...
1
vote
0answers
23 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 ...
0
votes
0answers
117 views

Power Automate - how to send an news digest only to members who have not read the news post

I'm creating a Power Automate workflow that sends out a news digest to all members of the site. I would like this news digest only to be send to the member(s) when the news post hasn't been read ...
0
votes
2answers
56 views

Unable to list files in Sharepoint doc library with a custom app

I have a custom app (actually an R package) that uses the Graph API to talk to Sharepoint. One of my users has reported that they are unable to list files in folders: either a 404 or 400 error is ...

1
2 3 4 5