Users
With SCIM API you can manage users in your Enterprise account. You can get the full list of users, filter by attribute, add new users, update user's attributes, activate or deactivate users and delete users completely.
User attributes
We support the following user attributes.
userName
User email. Mandatory field.
Name
name.givenName
Attribute is used if the value is not empty. Maximum: 60 characters.
name.familyName
Attribute is used if the displayName
attribute is not provided, name
attribute is provided and 'formatted' attribute value is not empty.
Maximum: 60 characters.
User type
userType
Supported values: regular
, readonly
and billing
.
When userType=regular
, a user is upgraded to FULL license inside the Qase application.
When userType is not specified, user license is updated/set according to internal Qase logic, which depends on the organization plan.
Active
active
Supported value: true
or false
📘
Qase attribute namespace
'urn:ietf:params:scim:schemas:core:2.0:User' is a default SCIM urn for basic fields. If your identity provider does not require defining namespace, the default namespace must be avoided.
User methods
Get users
GET: https://app.qase.io/scim/v2/Users
Retrieves the list of users in your organization. Use startIndex
and count
query parameters to receive paginated results. Supports sorting and the filter parameter.
Response
Sorting
Sorting allows you to specify the order in which resources are returned by specifying a combination of sortBy
and sortOrder
URL parameters.
The sortBy
parameter specifies the attribute whose value will be used to order the returned responses. The sortOrder
parameter defines the order in which the sortBy
parameter is applied. Allowed values are ascending
and descending
.
Filters
You can request a subset of resources by specifying the filter
query parameter containing a filter expression. Attribute names and attribute operators used in filters are case insensitive. The filter
parameter must contain at least one valid expression. Each expression must contain an attribute name followed by an attribute operator and an optional value.
eq
equal
ne
not equal
co
contains
sw
starts with
ew
ends with
pr
preset (has value)
gt
greater than
ge
greater than or equal to
lt
less than
le
less than or equal to
and
Logical "and"
or
Logical "or"
not
"Not" function
()
Precedence grouping
Example of complex request:
GET: https://app.qase.io/scim/v2/Users?attributes=name,userName&filter=NOT(name.familyName eq "Green")&sortBy=name.givenName&sortOrder=ascending&startIndex=2&count=5
Get user by ID
GET: https://app.qase.io/scim/v2/Users/1
Retrieves a single user resource
Response
Create a new user
POST: https://app.qase.io/scim/v2/Users
Creates a new user. Payload must include userName
attribute populated with an email address, familyName
, and givenName
attribute.
📘
All newly provisioned users are added with a default role.
Request
Response
Replace user by ID
PUT: https://app.qase.io/scim/v2/Users/1
Updates an existing user resource. This is the easiest way to replace the user information.
Request
Response
Update user attribute by ID
PATCH: https://app.qase.io/scim/v2/Users/1
Updates an existing user resource, overwriting values for specified attributes. Attributes that are not provided will remain unchanged. PATCH only updates the fields provided.
The body of a PATCH request must contain the attribute Operations
, whose value is an array of one or more PATCH operations. Each PATCH operation object must have exactly one op
member.
Request to deactivate user
Response
Request to rename user
Request to upgrade user license to regular
Request to update user email (userName)
Delete user by ID
DELETE: https://app.qase./scim/Users/1
Deletes a single user from the organization.
🚧
User removing restrictions
A user who is the workspace owner cannot be deleted. If you try to delete such user, the API returns a 409 error code.
Last updated