Questions tagged [microsoft-graph]

Questions that relate to the Microsoft Graph developer platform.

Filter by
Sorted by
Tagged with
1 vote
0 answers
22 views

Create client instance for reuse

I was trying to set up an instance of client so I don't have to write this.context.msGraphClientFactory.getClient().then((client: MSGraphClient) every time I want to make a request. Something which ...
user avatar
  • 23
1 vote
1 answer
29 views

Building a react application with Microsoft graph and SharePoint

I’m starting a new job and been tasked with creating a react based application which will be built in SharePoint and retrieve data using Microsoft Graph. I am new to this and am struggling with ...
user avatar
  • 23
0 votes
1 answer
10 views

SharePoint CSOM List Allow Multiple Selections on a choice Column?

How can I set Allow multiple Selections to ON on a Choice column in SharePoint list using CSOM or Graph API? I can't seem to find a way to do it. Here's the setting that I need to turn on.
user avatar
1 vote
1 answer
20 views

How to Display Office 365 Room Calendar View in SharePoint

Is it possible to display office room calendar in SharePoint- Modern UI site. Is there anything out of the box, and if its supposed to be a custom development What api should we be looking at? Thanks ...
user avatar
  • 4,100
0 votes
0 answers
17 views

Microsoft graph get site subsites doesn't get all subsites

I have a big problem here. I would like to get all subsites for site. My query in C#: var sites = await graphServiceClient.Groups["some_group_id"].Sites["root"].Sites.Request()....
user avatar
  • 43
2 votes
0 answers
28 views

Retreive SitePage publishingState from list query with GraphAPI

I am currently crawling through my SharePoint lists using GraphAPI in order to retrieve informations. The request looks like the following: https://graph.microsoft.com/beta/sites/mysite.sharepoint.com,...
user avatar
  • 121
0 votes
0 answers
21 views

Microsoft Graph Toolkit doesn't work - not sure why

I'm new to Microsoft Graph Toolkit but i can't get it to work inside my SharePoint site I'm getting error <script src="https://unpkg.com/@microsoft/mgt/dist/bundle/mgt-loader.js"></...
user avatar
  • 4,100
0 votes
0 answers
33 views

How to retrieve a list of Sharepoint Sites I have access to from Graph API using Sites.Selected

When granting granular access to SharePoint sites using the Sites.Selected permission in the Graph API, I'm not able to retrieve a list of sites, normally using graph.microsoft.com/v1.0/sites. It just ...
user avatar
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
1 vote
1 answer
28 views

Fetch recently created AD users in Power Automate?

I'm creating a scheduler Power Automate flow that will run daily and fetch the recently created in the Azure AD. The solution provided online is using MS Graph API and using /users endpoint but to use ...
user avatar
0 votes
1 answer
162 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
0 answers
17 views

When a Task is completed, but from multiple plans in the same group

as the title says, I want to use the trigger When a Task is completed (power automate), but for multiple plans, that are in the same group. I tried a workaround using schedule (every 10 min) listing ...
user avatar
0 votes
1 answer
90 views

Creating an external sharing report programatically

I need to create a report detailing external users and what they have access to on SharePoint sites. I suspect exactly like this: https://docs.microsoft.com/en-us/sharepoint/sharing-reports I need to ...
user avatar
  • 13
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
0 answers
6 views

MS graph - can i get StorageUsage,Template values when querying list of sites via power automate

I can currently receive values(list of sites) using the below search query in power automate https://graph.microsoft.com/v1.0/sites?search=ABC My output { "createdDateTime": "2019-07-...
user avatar
  • 4,100
0 votes
1 answer
308 views

Query MS graph API to get all sites containing 'ABC' in URL through Power Automate

I have been trying to work out this using Power Automate to list all sites in the site collection with the URL that contains at the end "ABC". I don't want to use names as it's not ...
user avatar
  • 4,100
0 votes
0 answers
18 views

SPFX webpage embedded into teams website tab

Below is the screenshot of Microsoft teams web browser I have embedded webpage build in SPFX using Graph Api to fetch data which is working fine here But when opening same tab in desktop teams ...
user avatar
0 votes
1 answer
56 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
0 answers
141 views

Modifying drive item permissions with Sites.Selected permission

I have an application that was granted Sites.Selected permission (under the Graph API), and then granted permission to a particular SharePoint site. I can read/write files to the default drive ...
user avatar
0 votes
1 answer
42 views

Change a site address (URL) by HTTP Request

I want to change the URL of a modern team site (without group, STS#3) by HTTP Request. Which API request do I need to do? I already tried by using GRAPH API but it only updates the displayName and not ...
user avatar
0 votes
0 answers
19 views

SharePoint 365 column data help

I have a basic Visual Basic program written in visual studio that watches folders for xml files and then parses though them and uses the included data to create a pdf via word mail merge and an access ...
user avatar
0 votes
1 answer
26 views

Display all Microsoft Forms in SharePoint Online

We have few Microsoft Forms & Quizzes created on Forms Platform. Is it currently possible to display all of the Forms and Quizzes in SharePoint Online? For example I want to display all of the ...
user avatar
0 votes
1 answer
187 views

Getting the SharePoint logo from Graph API

How could I get the SharePoint site logo from the Graph API? With the SharePoint site logo I mean this: Inside the documentation I didn't found anything that could be used.
user avatar
0 votes
1 answer
550 views

List all the members of SharePoint groups with Graph API

Is there any endpoint in the Microsoft Graph API fore SharePoint Online to list all the groups and members of SharePoint groups? It must also be possible to manage the users from those groups. As ...
user avatar
0 votes
0 answers
253 views

Java Code: SharePoint Graph API CompactToken parsing failed with error code: 80049217

SharePoint Graph API to generate an Access token. URL to generate access token: https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token URL to download a file from SharePoint: https://graph....
user avatar
0 votes
0 answers
183 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 ...
user avatar
0 votes
0 answers
10 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 ...
user avatar
  • 11
0 votes
1 answer
124 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 ...
user avatar
  • 43
0 votes
0 answers
68 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 ...
user avatar
  • 709
0 votes
0 answers
152 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 ...
user avatar
  • 1,029
0 votes
1 answer
32 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 ...
user avatar
0 votes
1 answer
101 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 ...
user avatar
0 votes
2 answers
45 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....
user avatar
0 votes
0 answers
22 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 ...
user avatar
0 votes
0 answers
142 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....
user avatar
  • 7,426
0 votes
0 answers
72 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: ...
user avatar
  • 1
1 vote
1 answer
366 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(&...
user avatar
  • 15
1 vote
1 answer
200 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 ...
user avatar
0 votes
1 answer
279 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 ...
user avatar
0 votes
0 answers
19 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 ...
user avatar
0 votes
1 answer
405 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 ...
user avatar
1 vote
0 answers
539 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
1 answer
227 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={...
user avatar
0 votes
1 answer
81 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"] ...
user avatar
  • 13
1 vote
1 answer
475 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-...
user avatar
0 votes
0 answers
26 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 ...
user avatar
  • 4,100
3 votes
1 answer
402 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 ...
user avatar
  • 31
1 vote
1 answer
275 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 ...
user avatar
1 vote
0 answers
44 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 ...
user avatar

1
2 3 4 5