Skip to main content

Users and roles

List the people who use the Company Portal, enable, disable or re-invite them, and read the roles and permissions that control what each user can do.

Paths are relative to https://api.rushhourapp.com/api/v1. See the API reference overview for how to read each entry.

Users​

MethodPathSummary
GET/Settings/UsersList the users of your company.
GET/Settings/Users/{id}Get a user.
DELETE/Settings/Users/{id}Delete user.
PUT/Settings/Users/{id}/disableDisable user.
PUT/Settings/Users/{id}/enableEnable user.
POST/Settings/Users/{id}/InviteSend a user their invitation email.

GET /Settings/Users​

List the users of your company.

Parameters

NameInTypeRequiredDescription
disabledUsersquerybooleanNoDefault: false.

Also accepts the shared list parameters.

Response: envelope; data is array of CompanyUser.

GET /Settings/Users/{id}​

Get a user.

Required access: the Users tab - view/edit/add users permission.

Parameters

NameInTypeRequiredDescription
idpathstringYes

Response: envelope; data is CompanyUser.

DELETE /Settings/Users/{id}​

Delete user.

Required access: the Company Admin role.

Parameters

NameInTypeRequiredDescription
idpathstringYes

Response: envelope; data has no documented shape.

PUT /Settings/Users/{id}/disable​

Disable user.

Required access: the Users tab - view/edit/add users permission.

Parameters

NameInTypeRequiredDescription
idpathstringYes

Response: envelope; data has no documented shape.

PUT /Settings/Users/{id}/enable​

Enable user.

Required access: the Users tab - view/edit/add users permission.

Parameters

NameInTypeRequiredDescription
idpathstringYes

Response: envelope; data has no documented shape.

POST /Settings/Users/{id}/Invite​

Send a user their invitation email.

Required access: the Users tab - view/edit/add users permission.

Parameters

NameInTypeRequiredDescription
idpathstringYes

Response: envelope; data has no documented shape.

Roles​

MethodPathSummary
GET/RolesGet roles.

GET /Roles​

Get roles.

Required access: the Company Admin role.

Parameters

NameInTypeRequiredDescription
ItemsPerPagequeryinteger (int32)No
Pagequeryinteger (int32)No
SearchTermquerystringNo
SortByquerystringNo
SortDirectionqueryinteger (int32)NoOne of: 0 (Ascending), 1 (Descending).

Response: envelope; data is RoleDtoPagedList.

Permissions​

MethodPathSummary
GET/PermissionsList permissions.
GET/Permissions/CurrentRolesPermissionsList the permissions granted by the signed-in user's roles.
GET/Permissions/CurrentRolesWithPermissionsList the signed-in user's roles and the permissions each role grants.

GET /Permissions​

List permissions.

Required access: the Company Admin role.

Parameters

NameInTypeRequiredDescription
ItemsPerPagequeryinteger (int32)No
Pagequeryinteger (int32)No
SearchTermquerystringNo
SortByquerystringNo
SortDirectionqueryinteger (int32)NoOne of: 0 (Ascending), 1 (Descending).

Response: envelope; data is array of PermissionDto.

GET /Permissions/CurrentRolesPermissions​

List the permissions granted by the signed-in user's roles.

Response: envelope; data is array of string.

GET /Permissions/CurrentRolesWithPermissions​

List the signed-in user's roles and the permissions each role grants.

Response: envelope; data is array of PermissionDto.