Invites a new user to join a company account on Rooms Version 6. You specify the custom role and access level that you want to give to the user in the
invitee request body.
To invite users to a company in Rooms Version 6, you must be either a Default Admin or another authorized user who has access to all of the locations to which the new user is being invited and one of the following
userPermissions set to true:
canAddMemberAndSetRoleLowerAccessLevel: Users can add other users who have a lower access level than their own and set those users' roles (in offices or regions that they oversee).
canAddMemberAndSetRoleSameAccessLevel: Users can add other users who have the same access level as their own or lower and set those users' roles (in offices or regions that they oversee or belong to).
Important: Before you invite users in the Rooms Version 6, we strongly recommend that you set up custom roles for your company. If you do not, all new users will be added as administrators. For more information, see Roles.
Note: This method is used only with Rooms v6. To invite a user in Rooms v5, see the following Members methods:
(Required) The id of the account.
User successfully invited.
Bad request. See ErrorCode and Message for details
Not authorized to make this request.