
Hi @Jacob Steentoft ,
I have tested https://graph.microsoft.com/v1.0/sites/{SiteID}/lists/{ListID}/items
by following steps and the url works well in my end. Please check the following steps
1 Add the permission of Sites.Selected and grant admin consent
2 Create permission
POST https://graph.microsoft.com/v1.0/sites/{sitesId}/permissions
Content-Type: application/json
{
"roles": ["write"],
"grantedToIdentities": [{
"application": {
"id": "{Directory (tenant) ID}",
"displayName": "Contoso Time Manager App"
}
}]
}
3 Get access Token
The url and body should be like following
https://login.microsoftonline.com/{{directoryId}}/oauth2/v2.0/token
KEY VALUE
grant_type client_credentials
client_id {{azureApp_clientId}}
client_secret {{azureApp_clientSecret}}
scope https://graph.microsoft.com/.default
and copy following code to Tests and click send
var json = JSON.parse(responseBody);
postman.setEnvironmentVariable("azureApp_bearerToken", json.access_token);
We will get long string of access_token like following picture
Set the request Header like following and retrieve the datas
KEY VALUE
Authorization Bearer {AccessToken}
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.