Updating an Existing User

API reference for the UpdateUser endpoint, used to partially modify existing Glance user profiles or suspend active accounts.

Use the UpdateUser endpoint to change a Glance user's profile.

Endpoint: https://www.glance.net/PAPI/UpdateUser.asp

Parameters

Be sure to include the required authentication parameters with each request.

Also include parameters to describe the changes to your user.

ParameterTypeRequired or Optional
PartnerUserIDup to 255 charactersRequired
UserSuspendedBoolean (1, 0, yes, no, true, false)Optional
UserActiveBoolean (1, 0, yes, no, true, false)Optional (deprecated, use UserSuspended)
UserAddressGlance AddressOptional
UserPWup to 49 charactersOptional
UserFirstup to 49 charactersOptional
UserLastup to 49 charactersOptional
UserEmailup to 127 charactersOptional
UserRoleup to 31 charactersOptional

This updates the user's record using any of the supplied fields. The user's record is not changed for fields not supplied. This can also be used to temporarily suspend or reinstate the user.

Parameter Details

PartnerUserID: The unique ID you assigned to this user upon creation. This value identifies the user you wish to update.

UserSuspended: (optional) If you give a 1 or true value, you suspend an active user. If you give a 0 or false value for this parameter, you reinstate a suspended user. If you do not give this parameter, your user's status is unchanged. Note: Some Glance customers with seasonal workloads suspend users during their off-seasons and reinstate them during their peak seasons.

UserActive: (deprecated, optional) If you give a 0 or false you make an active user inactive. If you give a 1 or true value for this parameter, you reinstate an inactive user. If you do not give this parameter, your user's active status is unchanged.

Info
UserActive is a legacy status. It is deprecated in favor of UserSuspended. Please update your systems to use UserSuspended. UserActive will be removed in a future release. If both parameters are included, UserSuspended takes priority.

UserAddress: (optional) If you give this parameter you change the unique Glance Address for this user.

UserFirst, UserLast: (optional) If you give either of these parameters, you change the user's first (given) name and / or last name (surname).

UserEmail: (optional) If you give this parameter you change the user's email address.

UserRole: (optional) If you give this parameter, you change the user's role. Give the special value -none- to remove the user's role assignment. If you use roles, you must provision them before you assign them. Some Glance customers do not use roles. For more information about user roles please contact Glance Customer Success.

Responses

See here.