Important Info- If in the account there are required user profile fields (apart from the fields of the 'Country' format), they should be also put into the request.
- The user role can be assigned in one of two ways:
- Using the role (if the assigned role is Account Administrator, Department Administrator, or Learner) and roleId (if the role is a custom role) tags,
- Using the roles array of data.
- If you use the roles array of data to assign a user role, you will be able to select two roles at once.
One of the roles will be Learner and the second role will be one of the administrative roles (Account Administrator, Department Administrator, or a custom role).
If you add two administrative role to the roles array of data, the user won't be added.
- If you have assigned a user role both with the role/roleId tags and the roles array of data, the user will be assigned to a role or roles specified in the roles array of data and the value specified in the role/roleId tags will be then ignored.
- If you haven't specified the user role with the role/roleId tags or with the roles array of data, the user will be assigned to the Learner role.
|