Appearance
getUserConsentsForDirectory ​
Returns all Consents made by a User against a given Directory
Request ​
http
GET /rest/smartdirectory/{smartDirectoryUUID}/userConsentsHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-authtoken | Yes | Auth token returned from loginUser |
Parameters ​
smartDirectoryUUID - path parameter. UUID of the Smart Directory as set up in SAM.
Response ​
200 OK ​
json
[
{
"userId": 8,
"value": "Y",
"consent": {
"id": 2,
"name": "Sync my User Profile with this Directory",
"desc": "Sync my User Profile with this Directory",
"consentType": {
"name": "Sync my User Profile with this Directory",
"desc": "Sync my User Profile with this Directory"
},
"required": "N"
}
},
{
"userId": 8,
"value": "Y",
"consent": {
"id": 1,
"name": "Share Details",
"desc": "Your details will be shared with others in the directory",
"consentType": {
"name": "Share personal details with others in a directory",
"desc": "Share personal details with others in a directory..."
},
"required": "Y"
}
}
]Errors ​
| Exception | Description |
|---|---|
WSInvalidAuthTokenException | See Error Definitions |
WSCacheServiceException | See Error Definitions |
WSInvalidParameterException | See Error Definitions |
WSSmartDirectoryNotFoundException | See Error Definitions |
WSSmartDirectoryServiceExceptio | See Error Definitions |
WSSmartDirectoryNotEnabledForCompanyException | See Error Definitions |
WSUserContactNotFoundException | See Error Definitions |
WSUserNotInSmartDirectoryException | See Error Definitions |