SharePoint GET /roleassignments REST API returns 403 Forbidden Error RRS feed

  • Question

  • Hi,

    We are trying 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.


    Brajmohan Singh


    Wednesday, December 23, 2020 8:01 AM

All replies