Skip to content

Users and permissions ​

Users are managed per tenant. Creating a user and assigning its permissions is also available in the web interface's user management. With single sign-on, users and their roles come from the customer's identity provider instead; see Users with single sign-on.

Operation: READ, CREATE and UPDATE on users

PurposeRequest
List the users of a tenantGET /v1/{tenant}/users
Search users by nameGET /v1/{tenant}/users/search/{query}
Read one userGET /v1/{tenant}/user/{emailOrId}
Create a userPUT /v1/{tenant}/user/{email}
Update a user, including its permissionsPOST /v1/{tenant}/user/{emailOrId}

A user's permissions in a tenant are listed in applicationMetadata.tenants, as the roles assigned to the user. The caller's own profile, with the permissions resolved into operations per object type, is returned by GET /v1/userinfo.

Permission sets ​

A user's roles are permission sets, objects of type permission, read through the generic endpoints. Each names its grants: an object type, the operations, and optionally an access query that narrows the grant to the records it matches.

Operation: READ on permissions

text
GET /v1/{tenant}/permissions
GET /v1/{tenant}/permission/{name}
json
{
  "name": "READ_ALL",
  "mutable": {
    "grants": [
      { "objectType": "assets", "operations": ["READ"], "accessQuery": "" },
      { "objectType": "geos", "operations": ["READ"], "accessQuery": "" }
    ]
  }
}
FieldDescription
nameThe name of the permission set, as assigned to users
mutable.grants[].objectTypeThe object type the grant applies to
mutable.grants[].operationsThe operations the grant allows: READ, CREATE, UPDATE, DELETE, EXECUTE, COMMISSION
mutable.grants[].accessQueryOptional. A query that narrows the grant to the records it matches; empty means all records

Permission sets are normally read-only: they are defined with the tenant during onboarding, and with single sign-on the roles a user holds follow from the customer's directory.