user.add
Scope: catalog Permissions to execute: for all
Invites a user. Available only for users with invitation permissions, usually an administrator. Sends a standard account invitation to the user on success.
If it is required to add an extranet user, then the following shall be passed in the fields: EXTRANET: Y
and SONET_GROUP_ID: [...]
. If it is required to add an intranet user, then the following shall be passed: UF_DEPARTMENT: [...]
.
Parameters
All fields from user.fields except for ID. The field EMAIL - required. Invitation text can be specified by the parameter MESSAGE_TEXT.
Call
BX24.callMethod('user.add', {"EMAIL": "newuser@example.com"});
Request
https://my.bitrix24.com/rest/user.add.json?EMAIL=newuser@example.com&auth=1b2234a7412080205f4318e42c7298dc
Response
{"result":222}
© «Bitrix24», 2001-2024