To make a request for Graph drive items and drive item permissions, you'll need to use Microsoft Graph API. You can utilize the following endpoints:
- To get drive items:
- Use
GET /me/drive/items/{item-id}
to retrieve details of a specific drive item. - Use
GET /me/drive/root/children
to list all items in the root directory.
- Use
- To manage permissions:
- Use
GET /me/drive/items/{item-id}/permissions
to fetch permissions for a specific drive item. - You can also use
POST /me/drive/items/{item-id}/invite
to share the item and set permissions.
- Use
Make sure to authenticate your requests with the necessary permissions (like Files.Read, Files.ReadWrite) in your access token.