question

mdzakir-4088 avatar image
0 Votes"
mdzakir-4088 asked AllenXu-MSFT commented

Get Specific document library owner using rest api

How can we get list users who have full control on a sharepoint document library. Need to do it using rest api+spfx or pnp +spfx

office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered AllenXu-MSFT commented

Hi @mdzakir-4088,

Using rest api, we could retrieve Role Assignments for a list like this:

  /_api/web/lists/getbytitle('Documents')/roleAssignments?$expand=Member/users,RoleDefinitionBindings

Then you could filter the results to get users who have full control.


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.



· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@mdzakir-4088,
I’m checking how the things are going on about this issue.
If you have extra questions about this answer, please click "Comment".

0 Votes 0 ·

@mdzakir-4088,

Did you have a try to michael's answer above? Is there any progress?

0 Votes 0 ·