Freshservice Agent Role

We have a customer requesting a method to get the permissions of a role for audit\reporting. When you review the documentation ( , the payload (assume pre-workspaces) shows scope and permissions assigned to a role. If I enumerate the all roles (/api/v2/roles) or role by id (/api/v2/roles/21000464897), this is the payload I’m getting:

    "role": {
        "description": "Can perform all non-admin actions except reporting",
        "id": 21000464897,
        "name": "IT Agent",
        "created_at": "2023-07-25T13:25:46Z",
        "updated_at": "2024-03-13T11:33:54Z",
        "default": true,
        "role_type": 2

There is a deprecated “scopes” and there is a new “role_type” in the schema, but no endpoints or documentation on how to get permission sets or retrieve role_type data. How do we retrieve role details to show the permissions associated with the roles?

Hey @rasimm,
I’ve shared this query with the concerned team.