addPassportOrganizationMember
Use this method to add a new member to your Yandex ID organization.
The limit is 10 invites per PassportOrganizationLogin a day.
Learn more
Request
Request structure in JSON format:
{
"method": "addPassportOrganizationMember",
"params": {
"PassportOrganizationLogin": (string),
"Role": ("ADMIN"|"USER"),
"SendInviteTo": {
"Phone": (string),
"Email": (string)
}
}
}
|
Parameter |
Type |
Description |
Required |
|
params structure (for JSON) / AddPassportOrganizationMemberRequest (for SOAP) |
|||
|
|
string |
The username of the Yandex ID organization where the new member will be added. |
Yes |
|
|
RoleEnum |
The role assigned to the new member when they are added to the Yandex ID organization. The parameter may take one of the two values:
|
Yes |
|
|
SendInviteTo |
Choose how to send the invitation to your Yandex ID organization. |
Yes |
|
SendInviteTo structure |
|||
|
|
string |
Phone number in "numbers only" format (without any separators, brackets, and so on) to send an SMS invitation to. For example, 79991234567. Omitted if the Email parameter is specified. |
No |
|
|
string |
Email address to send an email to. Omitted if the Phone parameter is specified. |
No |
Response
Response structure in JSON format:
{
"result": {
"PassportOrganizationLogin": (string),
"Warnings": [{
"Code": (int),
"Message": (string),
"Details": (string)
}, ... ],
"Errors": [{
"Code": (int),
"Message": (string),
"Details": (string)
}, ... ]
}
}
|
Parameter |
Type |
Description |
|
result structure (for JSON) / AddPassportOrganizationMemberResponse (for SOAP) |
||
|
|
string |
Username of the Yandex ID organization to which the invitation was sent. Alert Any user with a Yandex account can accept the invite link. |
|
|
array of ExceptionNotification |
Warnings that occurred during the operation. |
|
|
array of ExceptionNotification |
Errors that occurred during the operation. |