Method UpdateUser
UpdateUser(String, UserContract)
Update a user
Declaration
void UpdateUser(string connectionId, UserContract user)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
UserContract | user | User to update |
Examples
POST http://YourServerName/InfoShare/Json/Common/UpdateUser
Example for update user.{
"connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
"user": {
"Active": true,
"Obsolete": false,
"CanChangeLanguage": true,
"CanChangeOptions": true,
"CanExecuteDefaultSearch": true,
"LoginWithInternalPassword": false,
"LoginName": "demo2",
"DisplayName": "Demo2",
"Email": "demo@demo.com",
"HasEmailNotification": true,
"LoginWithoutPassword": true,
"NamedUser": false,
"ApplicationUser": false,
"Id": "b6aa9434-63e0-e911-a94a-00155d290a08",
"AllowedIPEndpoints: ["fe80::8116:9e00:ce37:6993%18","172.28.5.90"]},
"SID": "S-1-5-21-515967899-920026266-1708537768-1000",
"IgnorePasswordExpiration": true
}
Response:
{ }
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
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 | The login name of user dciadmin can not be changed (10256) |
ServiceException | AbsenceDateStart {user.AbsenceDateStart} must be before AbsenceDateEnd {user.AbsenceDateEnd} (10263) |
ServiceException | AbsenceDateStart and AbsenceDateEnd: Both values must be set or neither of them (10264) |
ServiceException | A user can not assign himself as deputy (10265) |
ServiceException | User not found {DeputyRepresantiveUserId} (10047) |
ServiceException | User login name ({userLoginName}) already exists (deactivated or deleted) (10068) |
ServiceException | If you define LoginWithInternalPassword, you must also define a password (10370) |