How to get Permissions for a SharePoint list item using graph V5? #2173
Unanswered
xinzhaozhang1985
asked this question in
Q&A
Replies: 1 comment
-
Since I can't find any endpoint in V5 support to get permissions for general list item. I have to call graph APIs directly which is the same endpoint as the graph V4. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are using the request below in V4 to get the SharePoint list item permissions for both the document library and general list
var graphClient = _factory.Create(tenantId);
After upgrading to V5, we can use two calls to get permissions for a document library item as below:
However, this method can't be used to get permissions for general list item. If I pass a general list item id, I will get error:
"Cannot request driveItem for an item that is not in a document library"
Can someone help?
Beta Was this translation helpful? Give feedback.
All reactions