Skip to content

Create Users ​

Endpoint ​

http
POST /unified/user-directory/users
Integrations supported
  • ActiveCampaign
  • Cisco Meraki
  • Files.com
  • Google Workspace
  • Okta
  • Salesforce

Query parameters ​

Refer Specifying query parameters in Truto APIs

integrated_account_id
string · uuid
REQUIRED · 

The ID of the integrated account to use for the request.

Example: 62f44730-dd91-461e-bd6a-aedd9e0ad79d
truto_response_format
string

The format of the response.

  • unified will return the response with unified mappings applied.
  • raw will return the raw response from the remote API.
  • normalized will apply the unified mappings and return the data in a normalized format.

Defaults to unified.

All possible enum values:
  • unified
  • raw
  • normalized
Example: unified
truto_ignore_remote_data
boolean

Excludes the remote_data attribute from the response.

truto_exclude_fields
array

Array of fields to exclude from the response.

Example: truto_exclude_fields[]=id&truto_exclude_fields[]=name
remote_query
object

Query parameters to pass to the underlying API without any transformations. Refer this guide to see how to structure the query parameters.

Example: remote_query[foo]=bar
organization_id
Required in
  • Cisco Meraki
workspace_id
Required in
  • Cisco Meraki

Request Body ​

Refer Writing data using Unified APIs

name
string

The name of the user

Required in
  • ActiveCampaign
Supported in
  • Cisco Meraki
  • Files.com
emails
object[]

The emails of the user

Required in
  • ActiveCampaign
  • Salesforce
Supported in
  • Cisco Meraki
  • Files.com
  • Google Workspace
  • Okta
email
string

The email address

type
string

The type of email address

is_primary
boolean

Whether the email address is primary

password
string
Required in
  • ActiveCampaign
  • Google Workspace
username
string

The username of the user

Required in
  • ActiveCampaign
Supported in
  • Files.com
  • Okta
  • Salesforce
group
integer
Required in
  • ActiveCampaign
first_name
string

The first name of the user

Required in
  • Google Workspace
  • Salesforce
Supported in
  • Okta
last_name
string

The last name of the user

Required in
  • Google Workspace
  • Salesforce
Supported in
  • Okta
phones
object[]

The phones of the user

Supported in
  • Okta
  • Salesforce
number
string

The phone number

extension
string

The extension of the phone number

type
string

The type of phone number

roles
object[]

The roles of the user

Required in
  • Salesforce
Supported in
  • Cisco Meraki
  • Files.com
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.

workspace
string

The role of the user in the workspace. This is available when the user can have different roles in different workspaces in an application.

timezone
string

The timezone of the user

Required in
  • Salesforce
Supported in
  • Files.com
languages
string[]

The languages preferred by the user

Supported in
  • Salesforce
description
Supported in
  • Files.com
groups
object[]

The groups of the user

Supported in
  • Files.com
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

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
Supported in
  • Files.com
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

Supported in
  • ActiveCampaign
  • Cisco Meraki
  • Files.com
  • Google Workspace
  • Okta
  • Salesforce
external_id
string

The external identifier for a user. This is set when the SCIM API is being used.

identifiers
object

The identifiers of the user.

first_name
string

The first name of the user

Supported in
  • ActiveCampaign
  • Google Workspace
  • Okta
  • Salesforce
last_name
string

The last name of the user

Supported in
  • ActiveCampaign
  • Google Workspace
  • Okta
  • Salesforce
title
string

The title of the user

name
string

The name of the user

Supported in
  • ActiveCampaign
  • Cisco Meraki
  • Files.com
  • Google Workspace
  • Okta
  • Salesforce
username
string

The username of the user

Supported in
  • ActiveCampaign
  • Files.com
  • Okta
  • Salesforce
emails
object[]

The emails of the user

Supported in
  • ActiveCampaign
  • Cisco Meraki
  • Files.com
  • Google Workspace
  • Okta
  • Salesforce
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

Supported in
  • ActiveCampaign
  • Google Workspace
  • Okta
  • Salesforce
number
string

The phone number

extension
string

The extension of 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
Supported in
  • Cisco Meraki
  • Files.com
  • Google Workspace
  • Okta
  • Salesforce
is_email_verified
boolean

Whether the user's email has been verified

Supported in
  • Cisco Meraki
is_2fa_enabled
boolean

Whether the user has 2FA enabled

Supported in
  • Cisco Meraki
  • Files.com
  • Google Workspace
roles
object[]

The roles of the user

Supported in
  • Cisco Meraki
  • Files.com
  • Salesforce
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.

workspace
string

The role of the user in the workspace. This is available when the user can have different roles in different workspaces in an application.

organizations
object[]

The organizations of the user

Supported in
  • Cisco Meraki
id
string

The unique identifier for an organization

name
string

The name of the organization

user_type
string

The type of user

licenses
object[]

The licenses of the user or the products the user has access to

Supported in
  • Cisco Meraki
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 · date-time

The date and time the user was last active for the license

groups
object[]

The groups of the user

Supported in
  • Files.com
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

workspaces
object[]

The workspaces of the user

Supported in
  • Cisco Meraki
id
string

The unique identifier for a workspace

name
string

The name of the workspaces

avatar
string

The avatar of the user

Supported in
  • Files.com
  • Google Workspace
  • Salesforce
timezone
string

The timezone of the user

Supported in
  • Files.com
  • Okta
  • Salesforce
languages
string[]

The languages preferred by the user

Supported in
  • Files.com
  • Google Workspace
  • Okta
  • Salesforce
bio
string

The bio of the user. Usually a short description set by the user about them.

Supported in
  • Salesforce
created_at
string · date-time

The date and time the user was created

Supported in
  • Cisco Meraki
  • Files.com
  • Google Workspace
  • Okta
  • Salesforce
updated_at
string · date-time

The date and time the user was last updated

Supported in
  • Okta
  • Salesforce
last_active_at
string · date-time

The date and time the user was last active

Supported in
  • Cisco Meraki
  • Files.com
last_login_at
string · date-time

The date and time the user was last logged in

Supported in
  • Files.com
  • Google Workspace
  • Okta
  • Salesforce
status_changed_at
string · date-time

The date and time the user's status was last changed

Supported in
  • Okta
activated_at
string · date-time

The date and time the user was activated

Supported in
  • Files.com
  • Okta
urls
object[]

The URLs of the user

url
string

The URL

type
string

The type of URL

remote_data
object

Raw data returned from the remote API call.