{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nReplaces the list of people that have push access to this branch. This removes all people that previously had push access and grants push access to the new list of people.\n\n| Type    | Description                                                                                                                   |\n| ------- | ----------------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames for people who can have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. |","properties":{"path":{"type":"object","properties":{"owner":{"type":"string","description":"The account owner of the repository. The name is not case sensitive."},"repo":{"type":"string","description":"The name of the repository without the `.git` extension. The name is not case sensitive."},"branch":{"type":"string","description":"The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql)."}},"required":["owner","repo","branch"],"additionalProperties":false},"body":{"type":"object","properties":{"users":{"type":"array","description":"The username for users","items":{"type":"string"}}},"required":["users"],"examples":[{"users":["octocat"]}]}},"required":["path","body"],"additionalProperties":false},"name":"Set user access restrictions","id":"github.repos.set-user-access-restrictions","example":{"path":{"owner":"octocat","repo":"hello-world","branch":"example"},"body":{"users":["octocat"]}},"maxRequests":1,"summary":false}}