add_site_roles
Grant or restrict site access by assigning user roles, with options for administrator or read-only permissions on delegated URLs.
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 |
|---|---|---|---|
| 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 |