add_site_roles
Assign a user to your Bing Webmaster site with administrator or read-only permissions using their email and an authentication code.
Instructions
Delegate site access to a user.
Args: site_url: The URL of your site delegated_url: The URL being delegated user_email: The email of the user to delegate access to authentication_code: The authentication code is_administrator: Whether the user should have administrator privileges is_read_only: Whether the user should have read-only access
Raises: BingWebmasterError: If the role assignment fails
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site_url": "<site_url>",
"delegated_url": "<delegated_url>",
"user_email": "<user_email>",
"authentication_code": "<authentication_code>",
"is_administrator": "<is_administrator>",
"is_read_only": "<is_read_only>"
},
"name": "add_site_roles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| user_email | Yes | ||
| is_read_only | Yes | ||
| delegated_url | Yes | ||
| is_administrator | Yes | ||
| authentication_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |