Hello @Michael Smith (staff) !
Welcome to Microsoft QnA!
I understand that your request somehow it does not get recognized !
Can you try this instead :
request = {
"recipients": [{'email':'user@email.com'}],
"roles": ["read"]
}
response=requests.post(
GRAPH_API_ENDPOINT + '/shares/' + share_id + '/permission/grant',
headers=headers,
json=request
)
The answer or portions of it may have been assisted by AI Source: ChatGPT Subscription
Kindly mark the answer as Accepted and Upvote in case it helped or post your feedback to help !
Regards