Questions tagged [microsoft-graph]

Questions that relate to the Microsoft Graph developer platform.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 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
34 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
14 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
24 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
13 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
26 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
44 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
27 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
26 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
37 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
21 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
36 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
24 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 ...
0
votes
0answers
4 views

Fetching all the planner task into the Sharepoint Webpart

This is my Sharepoint webpart fetching all the details from the planner task through graph API Is there any way to create a new task on button click in the Web part through Graph API so that a new ...
0
votes
1answer
29 views

Setting “Site sharing settings” programmatically

I am trying to programmatically set the "Site sharing settings" options under "Site Permissions" -> "Change how members can share" screen on a Modern site. I would ...
1
vote
1answer
109 views

Microsoft Graph API to get all the all the folders from SharePoint Document library

I am trying to get the all the folders from SharePoint library using Graph API. But I am able to get only level one folder Folder 1 Folder 1 Sub Folder Folder 2 Folder Sub Folder Using below ...
0
votes
1answer
9 views

resourceData returns null for microsoft graph API change notificaiton for SharePoint List

I have created a change notification for SharePoint "Access Requests" list. I am getting Notifcation when change ocurred in list. but i am not getting resourceData as usually we got with ...
0
votes
0answers
10 views

is extensionProperty in Azure Ad getting deprecated

can we still create extensionProperty in Azure Ad. or we should go for schema and open extension https://docs.microsoft.com/en-us/graph/api/resources/extensionproperty
0
votes
2answers
41 views

Graph Api call with filter query

How can I filter the API call dynamically passing through variable? I am getting value in this variable through another API call: var userid; this.props.context.msGraphClientFactory.getClient().then(...
0
votes
1answer
12 views

Microsoft Graph change notifications — For SharePoint Group for Tenant Level

I have requirement that whenever there will be any new user added in in SharePoint Site Group. I need to put the details for that group, User, Site details in another Data base. Can We user Microsoft ...
0
votes
1answer
22 views

Fetching all planner Task through Graph API

Why i am getting null value in {"CreatedBy : User :DisplayName"} and also in {"Assignments : AssignedBy :User :DisplayName"}
0
votes
1answer
24 views

Fetching the Outlook Task's Data into Webpart using Graph Api call

I am using render function to make Graph Api call I have created a function _outlookTask to fetch the outlook task's data How to make Graph Api call with Selecting the HTTP method as GET and then, ...
0
votes
0answers
24 views

Graph API Delta Query tracking

Is there any option to track the events in MS Graph API at tenant level using Delta Query? I have a requirement of capture all the Teams Events with BraodcastMeeting equal to true (means live event in ...
0
votes
1answer
105 views

Spfx with PnP.js / Graph: How to prevent redirect to spfxsinglesignon.aspx

We're developing an SPO custom web part, utilizing https://pnp.github.io/pnpjs for authentication and for communicating with SPO. I've noticed that when the page with our custom web part loads, the ...
1
vote
1answer
87 views

createLink graph api request

I am trying to create a sharedURL via a picker in my app that constucts a web url with a query par linked to a sharepoint file, which reads into the app on load. For some reason if I grab the manual ...
1
vote
2answers
81 views

Is it possible to extract and/or set users' birthday with a PowerShell script?

I've been doing some investigating and apparently a user's birthday date (the one that shows up on Delve) is not stored in a property inside the user's own office365 account object. I'm trying to ...
1
vote
3answers
45 views

SharePoint dynamic employee directory

I'm looking for a solution to be able to create a dynamic employee directory. Right now our company uses a SharePoint list that is filled by HR whenever a new employee comes on board, but this is ...
0
votes
2answers
26 views

Can GraphAPI be used to create item to list using SPFx, even if Current Loged-In user have have only Read Permission on list?

With SPFx can item be created in a list using GraphAPI if User have only "Read" permission on list? Will granting delegate Permission to SPFx solution with Sites.ReadWrite,Site.All will work?...
1
vote
3answers
38 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 ...
0
votes
1answer
51 views

How to retrieve a folder or document with a hash in the name using ms graph api

I am using MS graph API to retrieve folder contents and graphs from SharePoint online, using URLs like [...]/drive/root:/folder1/folder2:/. The folder and document names are of course URL encoded. It ...
0
votes
0answers
10 views

Which Graph API will help me to fetch site usage details such as Unique viewers, Site visits, etc for an individual site?

My requirement is to create a small spfx webpart showing selected Sharepoint site's usage details. I tried searching for this question, but landed up finding Graph api fetching usage details of ...
0
votes
0answers
35 views

Sharepoint online search query from PHP application in user context , both are connected through SAML SSO (Azure AD IDP) with PHP application

Below is problem description - I have sharepoint online and its URL is like - https://abc.sharepoint.com Above sharepoint is connected through SSO (Office 365 Azure AD IDP and SAML) I have another ...
0
votes
1answer
39 views

SharePoint online webhooks - Graph API or SharePoint API?

I'm currently working on a feature for an application where we want to sync files from a SharePoint Online document library to a storage account on Azure. We've been looking at using SharePoint Online ...
0
votes
1answer
52 views

Authenticate the SmtpClient using AppID and APPSecret instead of passing the username and password

I have the following SharePoint CSOM code inside my c# console application to send an email using the office 365 admin username and password using the client.Credentials = new ...
0
votes
1answer
134 views

Can a Graph API token be converted into a SharePoint REST API token?

It's a long shot, but maybe someone figured it out. Is it possible to make a request, or a bunch of requests, to gain access to SharePoint REST API if what I have is a Graph API access token? (Let's ...
1
vote
1answer
109 views

Is it possible to create a one note file in SharePoint document library from Powershell

I was hoping if someone has created a OneNote notebook file from Power Shell command and stored it in a document library in SharePoint Online. We can create sections and page of OneNote file from ...
0
votes
0answers
14 views

get all one note file from a sharepoint document library using graph api

I would like to use garph api to get all the Onenote files in my Document library inside the folder MyNotebooks. so structure is like this SharePointSiteA --> SharePointsubSiteB --> ...
1
vote
1answer
39 views

Get primary admin for SP site via Graph

At the beginning, I saw How to get Site Owner Via Graph but unfortunately, it's not working as I would have expected. I need to get primary admin for each and every site collection in my tenant. I ...
1
vote
1answer
157 views

Retrieve the used size of a Sharepoint site by using Microsoft Graph API

I've tried to retrieve the used size of a SharePoint online site by using Graph API (/sites/{siteId}/drive) However, the used size in quota of the drive is always 0B. So, I wonder that can we retrieve ...
0
votes
1answer
137 views

Sharepoint Admin Panel API Access - “Cannot read property 'length' of undefined”

I was curious whether anyone has seen this message before in the screenshot below. I believe the error prevents the granted API permissions showing as these are not visible, although using the below ...
0
votes
1answer
183 views

Break role inheritance via Graph API

I've been trying to switch between SharePoint REST API and Graph API and I can't find an equivalent of breakroleinheritance() _api/web/GetFileByServerRelativeUrl('/sites/sitename/Shared%20Documents/...
0
votes
1answer
30 views

Recommended Microsoft 365/SharePoint REST API/Graph API JS library - for custom solution not in SharePoint context

I'm after a reliable REST API JS library i can use to build a custom solution using SharePoint Online backend rest services. This app would be hosted outside the SharePoint context I know of this the ...
0
votes
0answers
27 views

Is it possible to get calendar events from my Outlook in SharePoint workbench after gulp serve using Microsoft Graph API?

I am using Microsoft Graph API to query Outlook Calendar events and display in SharePoint site. I followed this article: https://www.c-sharpcorner.com/article/retrieve-calendar-events-using-microsoft-...
0
votes
0answers
21 views

Use $search to search for words inside a multi line text (application credentials)

In my scenario, I need to search for items in a document library using the Graph API. This items have certain properties which are multi line text columns and are correctly configured as "Managed ...
1
vote
0answers
50 views

SPO list migration from one tenant to another with Graph API and Powershell

I am currently working on a project that has me doing migrations from one SPO tenant to another. I do not currently have access to most popular tools like ShareGate, Metalogicx etc. I mainly have to ...
0
votes
0answers
168 views

Unable to select nested array in JSON object with Microsoft Graph

Given the following Graph call response of https://graph.microsoft.com/beta/sites/root:/sites/[siteTitle]:/lists/[listId]/Columns, how can I only return/select down to the array "choices" ...
0
votes
0answers
62 views

“lastModifiedDateTime” filter in SharePoint returns “BadRequest” error

I want to list all the sites which have been modified after the last time when I query the API. I wanted to use Microsoft Delta query but seems like it is not supported for SharePoint sites(...
1
vote
1answer
378 views

How to get storage size of a sharepoint site using API?

Is there a Graph or SharePoint API which returns storage size information of a site. I have checked: SP.Site.usage property (sp.js) But it is not a recommended version. Also I don’t want to use ...
1
vote
1answer
105 views

MS Graph returning undefined response

I am trying to get an image of a user with the help of MS Graph. However, a response is always undefined and there is no error given but If I run a query on MS Graph Explorer I get the full image of ...
0
votes
0answers
180 views

How to get response header in c# Microsoft graph api request

I am trying to do File Copy operation in c# .net core using Microsoft graph API. It is an asynchronous operation, and by doc, it says it returns a location in the response header to check the status ...