User Permissions

Get User Permissions

This endpoint returns the global permissions held by the current User. Use it to check whether an action is available before attempting it, rather than handling the resulting error.

GET /api/v2/users/me/permissions/

Only permissions the User holds are listed, by short name. A User who holds none receives an empty list rather than an error, since reading your own permissions is not itself a privileged action.

Only global permissions are reported here. Permissions that apply to a single project are returned by the Project endpoints through include=permissions.

GET /api/v2/users/me/permissions/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json

{
    "permissions": [
        "add_project",
        "edit_analysis_connections",
        "view_all_project"
    ]
}

results matching ""

    No results matching ""