Import a user from LDAP

This command adds one or more users from an LDAP realm to the server.

Request

PUT https://{hostname}:{port}
    /cli/user/import?{parameters}
Accept: {contentType}
Table 1. Request parameters
Parameter Type Required Description
user string true Name or pattern of the users to be imported. Supports wildcard character *.
authenticationRealm string true Authentication realm name or ID
Table 2. Header parameters
Parameter Type Required Description
Accept
  • application/json
  • application/yaml
true

Example JSON request

{
        "name": "importUsers",
        "authorizationRealm": "Internal Security",
        "users": [
                  "jdoe",
                  "jsmith"
                 ]
}

Example response

{
  "id":"18b3e4ac-13d2-9ecb-f12c-d078fe0f06e5",
  "name":"jdoe",
  "actualName":"John Doe",
  "displayName":"JOHN DOE",
  "email":"john.doe@example.org",
  "deleted":false,
  "deletedDate":0,
  "authenticationRealm":"18b3e49e-987d-6595-7a67-8b6d47c8cbf8",
  "isLockedOut":false,
  "lastLoginDate":1697793306115,
  "isDeletable":true,
  "namePattern":"john.doe@example.org"
}

Related CLI command: importLdapUser.