LDAP User Synchronization
Use this API to synchronize the user details from LDAP.
Resource Informations
Name | Value |
---|---|
Requires authentication? | Yes |
Rate limited? | No |
Request
Request headers
Key | Value |
---|---|
Authorization | Bearer token |
Content-Type | application/json |
HTTP request URL for SSMS
GET https://{tenantId}.{hostname}/digitanium/v4/users/{userid}/ldap/sync
HTTP request URL for SHIFT
GET https://{hostname}/auth/realms/{tenantId}/v3_user/{userid}/ldap/sync
note
API requests must be made over https. Calls made over plain http will fail.
Parameters
No parameter fields are required.
Request body
No request body fields are required.
Response
Field Name | Type | Description |
---|---|---|
message | String | Message explains result of the API call. Refer Response status Information for details. |
status | String | The status of the API call. Refer Response status Information for details. |
subSystem | Integer | subSystem categorizes the type of API that has been called. Refer Subsystem details for details. |
data | Array | List of all user details. Refer Data Representation for details. |
Sample Response
{
"message": "User info fetched successfully",
"status": "Success",
"subSystem": 5,
"data": {
"username": "demo",
"email": "demo@gmail.com",
"firstName": "test",
"lastName": "user",
"enabled": true,
"emailVerified": true,
"attributes": {
"phone_number_region": [
"in"
],
"temp_new_email": [
"demologin@gmail.com"
],
"phone_number_type": [
"MOBILE"
],
"phone_number_lastupdated_timestamp": [
"1615198834"
],
"phone_number_verified": [
"true"
],
"phone_number": [
"+91123456789"
],
"phone_number_verified_timestamp": [
"1615198846"
],
"email_lastupdated_timestamp": [
"1614800192"
]
},
"requiredActions": [],
"admin": true
}
}
Data Representation
Field Name | Type | Description |
---|---|---|
username | String | Name of the user |
String | email id of the user | |
firstName | String | First name of the user |
lastName | String | Last name of the user |
enabled | Boolean | Indicates whether the user is enabled or not. true = enable & false = disable, Defaults to true. |
emailVerified | Boolean | Is this enabled or not? true = enable & false = disable, Defaults to true. |
attributes | List | Based on the user requirement the user attributes can be updated. User can add any customized attribute in form of key value pair. |
requiredActions | List(String) | List the actions which need to be performed during initial login. Refer Required Actions to know the supported actions. |
admin | Boolean | If set to true the user has admin role mapped, else not. |
Response Status Information
Status Code | Status | Message |
---|---|---|
200 | Success | User info fetched successfully |
400 | BAD_REQUEST | UserID should not be null or empty |
401 | Unauthorized | HTTP 401 Unauthorized |
404 | USER_NOT_FOUND | User does not exist |