Method UpdateUsers
UpdateUsers(String, List<UserContract>)
Update a list of users
Declaration
void UpdateUsers(string connectionId, List<UserContract> users)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.Collections.Generic.List<UserContract> | users | A list of users to be updated |
Examples
POST http://YourServerName/InfoShare/Json/Common/UpdateUsers
This example updates a list of two users.{
"connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
"users": [{
"Active": true,
"Obsolete": false,
"CanChangeLanguage": true,
"CanChangeOptions": true,
"CanExecuteDefaultSearch": true,
"LoginWithInternalPassword": false,
"LoginName": "demo1",
"DisplayName": "Demo1",
"Email": "demo@demo1.com",
"HasEmailNotification": true,
"LoginWithoutPassword": true,
"NamedUser": false,
"ApplicationUser": true,
"Id": "b6aa9434-63e0-e911-a94a-00155d290a08"
}, {
"Active": true,
"Obsolete": false,
"CanChangeLanguage": true,
"CanChangeOptions": false,
"CanExecuteDefaultSearch": true,
"LoginWithInternalPassword": false,
"LoginName": "demo2",
"DisplayName": "Demo2",
"Email": "demo@demo2.com",
"HasEmailNotification": false,
"LoginWithoutPassword": true,
"NamedUser": false,
"ApplicationUser": false,
"Id": "a6aa9434-63e0-e511-a94a-00155d190a08"
}
]
}
Response:
{ }
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Current user is not allowed to change user details (10037) |
ServiceException | User not found {userId} (10047) |
ServiceException | No more named-user licences available! (10053) |
ServiceException | There are no more application user licences available! (10054) |
ServiceException | DCIAdmin can't be deleted or deactivated (10072) |
ServiceException | The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |
ServiceException | Error occurred while processing {user} object {users[i].Id} (10203) |
ServiceException | The login name of user dciadmin can not be changed (10256) |
ServiceException | User login name ({userLoginName}) already exists (deactivated or deleted) (10068) |
ServiceException | Reset password for user dciadmin not allowed (10329) |
ServiceException | If you define LoginWithInternalPassword, you must also define a password (10370) |