Skip to content

Downgrade Users ​

Endpoint ​

http
POST /unified/user-directory/users/downgrade
Integrations supported
  • PagerDuty
  • Salesforce
  • Zoom

Query parameters ​

integrated_account_id
string · uuid
REQUIRED · The ID of the integrated account to use for the request.
Example: 62f44730-dd91-461e-bd6a-aedd9e0ad79d
user_id
string
The unique identifier for the user
Required in
  • PagerDuty
  • Salesforce
  • Zoom
license_id
string
The unique identifier for the license
Required in
  • PagerDuty
role_id
string
The unique identifier for the role
Required in
  • Salesforce

Request Body ​

Refer Writing data using Unified APIs

remote_data
object
Any additional data that should be passed as part of the request body. This data is not transformed by Truto and is passed as is to the remote API.

Response Body ​

id
string
REQUIRED · The unique identifier for a user
first_name
string
The first name of the user
last_name
string
The last name of the user
name
string
The name of the user
username
string
The username of the user
emails
object[]
The emails of the user
email
string
The email address
type
string
The type of email address
is_primary
boolean
Whether the email address is primary
phones
object[]
The phones of the user
number
string
The phone number
type
string
The type of phone number
status
string
The status of the user. If no clear mapping is available, then the raw value is returned.
All possible enum values:
  • active
  • inactive
  • deleted
  • invited
is_email_verified
boolean
Whether the user's email has been verified
is_2fa_enabled
boolean
Whether the user has 2FA enabled
roles
object[]
The roles of the user
id
string
The unique identifier for a role
name
string
The name of the role
group
string
The role of the user in the group. This is available when the user can have different roles in different groups or teams in an application.
organization
string
The role of the user in the organization. This is available when the user can have different roles in different organizations in an application.
organizations
object[]
The organizations of the user
id
string
The unique identifier for an organization
name
string
The name of the organization
licenses
object[]
The licenses of the user or the products the user has access to
id
string
The unique identifier for a license
name
string
The name of the license
organization
string
The unique identifier of the organization to which the license belongs
last_active_at
string
The date and time the user was last active for the license
groups
object[]
The groups of the user
id
string
The unique identifier for a group
name
string
The name of the group
organization
string
The unique identifier of the organization to which the group belongs
avatar
string
The avatar of the user
timezone
string
The timezone of the user
languages
string[]
The languages preferred by the user
bio
string
The bio of the user
created_at
string
The date and time the user was created
updated_at
string
The date and time the user was last updated
last_active_at
string
The date and time the user was last active
last_login_at
string
The date and time the user was last logged in
status_changed_at
string
The date and time the user's status was last changed
activated_at
string
The date and time the user was activated
remote_data
object
Raw data returned from the remote API call.