get_site_roles
Retrieve all role assignments for a site, optionally including subdomains, to manage user permissions and access control.
Instructions
Get all roles assigned for a specific site.
Args: site_url: The URL of the site include_all_subdomains: Whether to include roles for all subdomains
Returns: List[SiteRole]: List of role assignments for the site
Raises: BingWebmasterError: If the roles cannot be retrieved
Returns at most limit rows (default 50, max 500). When the result reports
a next_offset, call again with offset=next_offset to get more rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of rows to return. | |
| offset | No | Index of the first row. | |
| site_url | Yes | ||
| include_all_subdomains | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |