Method GetUserSettings
GetUserSettings(String, String)
Get settings of a user.
Declaration
UserSettingsContract GetUserSettings(string connectionId, string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | userId | The user id. See also Id |
Returns
Type | Description |
---|---|
UserSettingsContract | User settings |
Examples
POST http://YourServerName/InfoShare/Json/Common/GetUserSettings
Example for get settings of a user.{
"connectionId":"e08482f2-eb69-4693-b2c1-cdc87f641ec2",
"userId": "172935af-62e0-e911-a94a-00155d290a08",
}
Response:
{
"GetUserSettingsResult": {
"FolderForPrivateSearches": null,
"FolderForPublicSearches": null,
"LastSelectedFolderPath": null,
"PossibleTwoWayAuthenticationType": "Mail",
"ShowSearchOptionButton": false }
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Two way authentication type ({twoWayAuthenticationType}) is invalid. Valid types are: {allowedTwoWayAuthenticationTypes} (10148) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |
ServiceException | Could not parse int {flag} to a valid two way authentication type (10154) |