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}
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 |
Parameter | Type | Required | Description |
---|---|---|---|
Accept |
|
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.