UserPermission API

In Surpass, a user’s ability to view and interact with different parts of the system depends on their “permissions”. Each part of the system has a unique permission, which acts as a key. Only users with the relevant permission can access a given part of the system. If a user does not have permissions for an area of the system, they will not see it.

Individual permissions can be combined into a profile called a “role”, which can then be given to a user. A role gives a user all of the included permissions. Each role in Surpass has a unique identifier. For information on the unique identifier for each role, read Permission API. Read Creating a new role for information on how to create a custom role.

The UserPermission API resource is used to retrieve, assign, and delete user and permission (role) associations.

This article explains what calls can be made to the Surpass API using the UserPermission resource.

Import this API into your Postman Workspace

In This Article

Listing user and permission associations

get /api/v2/UserPermission

Send a request to the endpoint to retrieve a list of user and permission (role) associations. Refer to the available parameters to influence the response. No request body is required.

Retrieving user and permission association information

get /api/v2/UserPermission/{id}

Send a request to the endpoint to retrieve information for a specific user and permission (role) association using its ID. No request body is required.

Assigning a role to a user

post /api/v2/UserPermission

Send a request to the endpoint to assign a role to a user.

Deleting a user and permission association

delete /api/v2/UserPermission/{id}

Send a request to the endpoint to delete a specific user and permission (role) association. No request body is required.

Error Codes

Refer to the following table for information on error codes that may be encountered when using this resource.

Further reading

Read the following articles to learn more about similar APIs, how to get started with the Surpass API v2, and how to get the best out of this reference documentation:

NOTE: This form is to provide feedback to help improve the Surpass Help documentation only. If you need live support, contact support@surpass.com.