---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://yandex.com/dev/direct/doc/en/agencyclients/addPassportOrganizationMember.md
  - https://yandex.com/dev/direct/doc/ru/agencyclients/addPassportOrganizationMember.md
sourcePath: en/ref-v5/agencyclients/addPassportOrganizationMember.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/direct/doc/en/llms.txt


# 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**

- [How the “add” method works](https://yandex.ru/dev/direct/doc/en/best-practice/modify.html)
- [How to handle errors](https://yandex.com/dev/direct/doc/en/concepts/errors.html)

## Request {#input}

Request structure in JSON format:

```json translate=no
{
  "method": "addPassportOrganizationMember",
  "params": {
    "PassportOrganizationLogin": (string),
    "Role": ("ADMIN"|"USER"),
    "SendInviteTo": {
      "Phone": (string),
      "Email": (string)
	  }
  }
}
```

#|
||

**Parameter**

|

**Type**

|

**Description**

|

**Required**

||
||

**params structure (for JSON) / AddPassportOrganizationMemberRequest (for SOAP)**
|
>
|
>

||
||

`PassportOrganizationLogin`

|

string

|

The username of the Yandex ID organization where the new member will be added.

|

Yes

||
||

`Role`

|

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:

* ADMIN
* USER


|

Yes

||
||

`SendInviteTo`

|

SendInviteTo

|

Choose how to send the invitation to your Yandex ID organization.
Be sure to specify one of the parameters: Phone or Email.

|

Yes

||
||

**SendInviteTo structure**
|
>
|
>

||
||

`Phone`

|

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

||
||

`Email`

|

string

|

Email address to send an email to.

Omitted if the Phone parameter is specified.

|

No

||
|#


## Response {#output}

Response structure in JSON format:

```json translate=no
{
  "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)**
|
>
|
>
||
||
`PassportOrganizationLogin`
|
string
|
Username of the Yandex ID organization to which the invitation was sent.

{% note alert %}

Any user with a Yandex account can accept the invite link.

{% endnote %}

||
||
`Warnings`
|
array of ExceptionNotification
|
Warnings that occurred during the operation.
||
||
`Errors`
|
array of ExceptionNotification
|
Errors that occurred during the operation.
||
|# 

