I checked this with full control with user access but not able to retrieve the permission.
I believe you need site collection administrator access to retrieve the role "RoleAssignment".
Hope this answers your question.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
We have a requirement to retrieve RoleAssignments for a SharePoint Site using following REST API:
GET <Site_URL>/_api/web/roleassignments?$expand=Member/users,RoleDefinitionBindings
But this API is retuning 403 Forbidden error:
{
"odata.error": {
"code": "-2147024891, System.UnauthorizedAccessException",
"message": {
"lang": "en-US",
"value": "Access denied. You do not have permission to perform this action or access this resource."
}
}
}
Does a user need administrator access to retrieve RoleAssignments or what access user need in order to fetch these details using REST API?
Any leads will be appreciated.
Note- The user with which we are trying to fetch RoleAssignments using REST API is a non-admin user.
Thanks,
Brajmohan Singh
I checked this with full control with user access but not able to retrieve the permission.
I believe you need site collection administrator access to retrieve the role "RoleAssignment".
Hope this answers your question.