Create a new user

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Creates a new user account with role and contact details.

Endpoints

post /emsapi/users

Request URL

https://{server-hostname}:8383/emsapi/users

Scope

Admin.CREATECopied!

Header

Authorization: d92d4xxxxxxxxxxxxx15f52

- Request Body

application/json
JSON object
Hide Sub-Attributes
authTypestringOptional

Authentication mode for the user (e.g., localAuthentication).

languagestringOptional

User locale identifier.

probeScopeTypeintegerOptional

Probe scope type for summary/probe configuration.

deviceScopeTypeintegerOptional

Device scope type for MDM access control.

remoteOfficeGroupsarrayOptional

List of remote office group identifiers for user scope.

roleIDlongOptional

Role identifier to assign to the user.

userNamestringOptional

Username for the new user.

mailIDstringOptional

Email address for the user.

phoneNumberstringOptional

Phone number for the user.

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request POST \
  --url https://appdomain/emsapi/users \
  --header 'Authorization:  d92d4xxxxxxxxxxxxx15f52' \
  --header 'content-type: application/json' \
  --data '{"phoneNumber":"22222676","probeScopeType":1,"roleID":4,"deviceScopeType":0,"language":"en_us","mailID":"alex.morgan@example.com","remoteOfficeGroups":[],"authType":"localAuthentication","userName":"alex.morgan"}'
Show full

Sample Request Body

Create a local user with role, email, and scope settings.

Copied!
  {
    "phoneNumber": "22222676",
    "probeScopeType": 1,
    "roleID": 4,
    "deviceScopeType": 0,
    "language": "en_us",
    "mailID": "alex.morgan@example.com",
    "remoteOfficeGroups": [],
    "authType": "localAuthentication",
    "userName": "alex.morgan"
  }
                
Show full

Response Parameters

- HTTP code 200

Response Body - application/json
JSON object
Hide Sub-Attributes
mailStatusboolean

Indicates whether the invitation or activation email was sent successfully.

domainNamestring

Domain name for the user. Local users are represented as 'local'.

userNamestring

Username of the created user.

loginIdstring

Unique login identifier for the newly created user.

securityAdvisoryCodestring

Security advisory code returned after user creation.

metaJSON object

Metadata related to the user creation.

Show Sub-Attributes
userCountinteger

Total user count after creation.

Possible Response Codes

200HTTP code

Sample Response: HTTP 200

User creation succeeds and returns login identity with metadata.

Copied!
  {
    "loginId": "302",
    "securityAdvisoryCode": "SAC001",
    "meta": {
      "userCount": 3
    },
    "domainName": "local",
    "mailStatus": true,
    "userName": "alex.morgan"
  }
                
Show full

Duration: 1 minute | Threshold: 30 | Lock period: 5 minutes

Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.