add_site_roles
Delegate site access to a user by specifying site URL, delegated URL, user email, authentication code, and role permissions (administrator or read-only).
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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| self | Yes | ||
| site_url | Yes | ||
| delegated_url | Yes | ||
| user_email | Yes | ||
| authentication_code | Yes | ||
| is_administrator | Yes | ||
| is_read_only | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |