1.0OAS 3.0

The User REST Service is included within the REVEAL Customer Meta Data API suite. Integrated customers and partners can leverage this API to create, update, and deactivate users within a REVEAL account to synchronize records between back-office systems.

This API will use the following unique identifier(s): Driver Number, Employee ID, External ID. Standard REST verbs are applied: GET, POST, PUT.

Note: The returned response is restricted to the Reveal account’s data plan. If the information being queried is outside of the data plan, a 400 Bad Request response is returned.

API Base URL
  • Server 1:https://api.us.vzconnect.com

User API

Operations for creating, retrieving, updating and deactivating users within a REVEAL account, identified by employee ID or by external ID.

Get all users

Retrieves User data by calling for all users within an account, or a specific user when the userId query parameter is supplied. Only ACTIVE users within a REVEAL account are returned; no deactivated or deleted users are returned in the query. The list contains abridged user records and is limited to 1000 users; pagination is not supported.

get
https://api.us.vzconnect.com/cmd/v1/users

Query Parameters

userIdinteger

When provided, returns the specific user identified by this User ID. When omitted, returns the list of all active users.

Example:1

Response

application/json

Successfully retrieved the list of users.

A wrapper object containing an abridged user and supplemental hypermedia links.

userobject

An abridged REVEAL user record returned in the list of users.

Show Child Parameters
_linksobject | null

The links provided enable the integration user to gather additional meta data for a User record. The groups link provides details on which groups the User record belongs to within the REVEAL account.

Show Child Parameters
 
application/json

Create a new user

Creates a user record within the REVEAL account.

post
https://api.us.vzconnect.com/cmd/v1/users

Body

application/json

The user details for the new user to create. Includes fields such as name, email, role, and employee ID.

UserInput

The request body fields provided when creating (POST) or editing (PUT) a user record.

FirstNamestringrequired

The first name of the user.

Example:Lonny

LastNamestringrequired

The last name of the user.

Example:Arking

EmailAddressstringrequired

The email address for the user. The email address is also the REVEAL username login and is mandatory when creating a user record.

Example:user@example.com

EmployeeIdintegerrequired

Employee ID is the unique identifier for the user within REVEAL. Not a mandatory field within the REVEAL account, but required for the API.

Example:777099

MobileNumberstring | null

The phone number for the user.

Example:null

IsAdministratorboolean

Boolean field for true or false. Default is false. True indicates that the user is an Administrator for the referenced REVEAL account.

Default:false

Example:true

IsRegionalAdministratorboolean

Boolean field for true or false. Default is false. Can only be set to true if the corresponding REVEAL account is enabled with Regional Administration permission.

Default:false

Example:false

Rolestring | null

The name of the role applied to the user. Required when creating a user: it must match the name of an existing role in the REVEAL account, including for Administrators and Regional Administrators.

Example:Demo

TimeZonestring | null

The time zone selection for the user. Follows ISO time zone abbreviations. If NULL, defaults to the Account Preferences selection.

Example:null

Regionstring | null

The Region selection for the user. Follows ISO alpha 3 country codes.

Example:null

Languagestring | null

The Language selection for the user. Follows IETF language tags.

Example:null

IsDriverboolean

Boolean field for true or false. Default is false. If the user should also be a Driver, a unique Driver Number must also be provided.

Default:false

Example:false

DriverNumberstring | null

The Driver Number is the unique identifier used to reference the driver within the API. Required for the API when the user is a Driver.

Example:null

Response

application/json

Successfully created the new user. Returns the submitted user details.

User

A REVEAL user record.

FirstNamestring

The first name of the user.

Example:Dan

LastNamestring

The last name of the user.

Example:Bowyer

EmailAddressstring

The email address for the user. The email address is also the REVEAL username login and is mandatory when creating a user record.

Example:user@example.com

EmployeeIdinteger | null

Employee ID is the unique identifier for the user within REVEAL. The Employee ID is not a mandatory field within the REVEAL account, but it is required for the API.

Example:982736342

MobileNumberstring | null

The phone number for the user.

Example:null

IsAdministratorboolean

Boolean field for true or false. Default is false. True indicates that the user is an Administrator for the referenced REVEAL account. Administrator is the highest level role within a REVEAL account.

Default:false

Example:false

IsRegionalAdministratorboolean

Boolean field for true or false. Default is false. This field can only be set to true if the corresponding REVEAL account is enabled with Regional Administration permission.

Default:false

Example:true

Rolestring | null

Role can be NULL if the user is an Administrator or a Regional Admin. If the user is not an administrator, then the name of the role applied to the user is returned. Roles are created within the REVEAL account’s Admin section.

Example:null

TimeZonestring | null

The time zone selection that the user has configured for how time should be represented when logged into REVEAL. If NULL, the user’s time zone is set to the Account Preferences selection. Time Zone requests and responses follow ISO time zone abbreviations.

Example:Eastern Standard Time

Regionstring | null

The Region selection for the user. Region requests and responses follow ISO alpha 3 country codes for the list of countries currently supported by REVEAL.

Example:USA

Languagestring | null

The Language selection for the user. Language requests and responses follow IETF language tags for the list of languages currently supported by REVEAL.

Example:en-US

IsDriverboolean

Boolean field for true or false. Default is false. When creating or editing a user, the user can be specified to also appear as a Driver within the REVEAL account. If the API user requests for a User to also be a Driver, a unique Driver Number must also be provided.

Default:false

Example:false

DriverNumberstring | null

The Driver Number is the unique identifier that will be used to reference the driver within the API. The Driver Number is not a mandatory field within the REVEAL account, but is required for the API.

Example:null

UserIdinteger

An integer that serves as a primary key, uniquely identifying each record in the table.

Example:1

 
application/json

Create an external user

Creates a new user within the authenticated REVEAL account using an external system identifier. This endpoint is used when the user identity is managed by an external system and needs to be synchronized into REVEAL.

post
https://api.us.vzconnect.com/cmd/v1/users/external

Body

application/json

The external user details including the required ExternalId and the user profile information to create.

ExternalUserInput

The request body fields provided when creating (POST) or editing (PUT) an external user record. Same fields as a user, plus the required ExternalId.

FirstNamestringrequired

The first name of the user.

Example:Lonny

LastNamestringrequired

The last name of the user.

Example:Arking

EmailAddressstringrequired

The email address for the user. The email address is also the REVEAL username login and is mandatory when creating a user record.

Example:user@example.com

EmployeeIdstringrequired

Employee ID is the unique identifier for the user within REVEAL. Not a mandatory field within the REVEAL account, but required for the API.

Example:777099

MobileNumberstring | null

The phone number for the user.

Example:null

IsAdministratorboolean

Boolean field for true or false. Default is false. True indicates that the user is an Administrator for the referenced REVEAL account.

Default:false

Example:true

IsRegionalAdministratorboolean

Boolean field for true or false. Default is false. Can only be set to true if the corresponding REVEAL account is enabled with Regional Administration permission.

Default:false

Example:false

Rolestring | null

The name of the role applied to the user. Can be NULL if the user is an Administrator or a Regional Admin.

Example:Demo

TimeZonestring | null

The time zone selection for the user. Follows ISO time zone abbreviations. If NULL, defaults to the Account Preferences selection.

Example:null

Regionstring | null

The Region selection for the user. Follows ISO alpha 3 country codes.

Example:null

Languagestring | null

The Language selection for the user. Follows IETF language tags.

Example:null

IsDriverboolean

Boolean field for true or false. Default is false. If the user should also be a Driver, a unique Driver Number must also be provided.

Default:false

Example:false

DriverNumberstring | null

The Driver Number is the unique identifier used to reference the driver within the API. Required for the API when the user is a Driver.

Example:null

ExternalIdstringrequired

The unique identifier for the user in the external system, in the format scope:value. 3 to 96 characters; the scope and the value may contain letters, digits, underscore and hyphen.

Match pattern:^(?=.{3,96}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$

>= 3 characters<= 96 characters

Example:hr_system:emp-1042

Response

application/json

Successfully created the external user. Returns the submitted external user details.

ExternalUser

A REVEAL user record that is managed by an external system.

FirstNamestring

The first name of the user.

Example:Dan

LastNamestring

The last name of the user.

Example:Bowyer

EmailAddressstring

The email address for the user. The email address is also the REVEAL username login and is mandatory when creating a user record.

Example:user@example.com

EmployeeIdinteger | null

Employee ID is the unique identifier for the user within REVEAL. The Employee ID is not a mandatory field within the REVEAL account, but it is required for the API.

Example:982736342

MobileNumberstring | null

The phone number for the user.

Example:null

IsAdministratorboolean

Boolean field for true or false. Default is false. True indicates that the user is an Administrator for the referenced REVEAL account. Administrator is the highest level role within a REVEAL account.

Default:false

Example:false

IsRegionalAdministratorboolean

Boolean field for true or false. Default is false. This field can only be set to true if the corresponding REVEAL account is enabled with Regional Administration permission.

Default:false

Example:true

Rolestring | null

Role can be NULL if the user is an Administrator or a Regional Admin. If the user is not an administrator, then the name of the role applied to the user is returned. Roles are created within the REVEAL account’s Admin section.

Example:null

TimeZonestring | null

The time zone selection that the user has configured for how time should be represented when logged into REVEAL. If NULL, the user’s time zone is set to the Account Preferences selection. Time Zone requests and responses follow ISO time zone abbreviations.

Example:Eastern Standard Time

Regionstring | null

The Region selection for the user. Region requests and responses follow ISO alpha 3 country codes for the list of countries currently supported by REVEAL.

Example:USA

Languagestring | null

The Language selection for the user. Language requests and responses follow IETF language tags for the list of languages currently supported by REVEAL.

Example:en-US

IsDriverboolean

Boolean field for true or false. Default is false. When creating or editing a user, the user can be specified to also appear as a Driver within the REVEAL account. If the API user requests for a User to also be a Driver, a unique Driver Number must also be provided.

Default:false

Example:false

DriverNumberstring | null

The Driver Number is the unique identifier that will be used to reference the driver within the API. The Driver Number is not a mandatory field within the REVEAL account, but is required for the API.

Example:null

UserIdinteger

An integer that serves as a primary key, uniquely identifying each record in the table.

Example:1

ExternalIdstring

The unique identifier for the user in the external system, in the format scope:value. 3 to 96 characters; the scope and the value may contain letters, digits, underscore and hyphen.

Match pattern:^(?=.{3,96}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$

>= 3 characters<= 96 characters

Example:hr_system:emp-1042

 
application/json