Skip to navigation

User - UPSERT

View as Markdown

This API is used to create or update users in BIPO.

FieldTypeRequiredDescription
InterfaceCodeStringYesBIPO-USR
UserCodeStringYesUser Code, up to 60 characters. A new code creates a user; an existing code updates it.
UserNameStringYesUser name, up to 60 characters.
UserTypeStringYesM = Master, A = Admin, U = User.
CountryCodesStringYesCountry/Region Codes, separated by commas.
UserRoleCodeStringYesUser Role Code. Must already exist in BIPO.
ParentUserCodeStringNoParent User Code. Must not be the same as UserCode. Only used when UserType = U.
EmployeeCodeStringNoEmployee linked to the user. Two users cannot share the same Employee Code.
EmailStringNoEmail address. Must be a valid email address, and two users cannot share the same one.
NTUserNameStringNoWindows login name.
MobileCountryCodeStringNoMobile country code.
MobileNoStringNoMobile number.

Note: A new user is created with a random password and must change it on first login, so the user cannot log in until the password is reset or the user signs in through single sign-on. Passwords cannot be sent through this API.

Note: The number of users is limited by the user licences. Over the limit, the record is refused with Maximum no of records exceeds {0} user licences.

Note: In a batch, a record that fails is returned under invalidRecords with its reason, and the other records are still saved (HTTP 200). Example reasons: Invalid User Role., Mandatory Name must not be empty.

Note: This API is for the Butter application integration only. A Butter licence is required.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects a string.

Response

OK
dataobject
errorslist of any
messageslist of strings
errorCodeanyOptional