GitHub · Capability

GitHub User API — Users

GitHub User API — Users. 99 operations. Lead operation: GitHub Update Ldap Mapping for User. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubUsers

What You Can Do

PATCH
Updateldapmappingforuser — GitHub Update Ldap Mapping for User
/v1/admin/ldap/users/{username}/mapping
POST
Syncldapmappingforuser — GitHub Sync Ldap Mapping for User
/v1/admin/ldap/users/{username}/sync
POST
Createuser — GitHub Create User
/v1/admin/users
PATCH
Updatetheusernameforuser — GitHub Update the Username for User
/v1/admin/users/{username}
DELETE
Deleteuser — GitHub Delete User
/v1/admin/users/{username}
GET
Getusersstatistics — GitHub Get Users Statistics
/v1/enterprise/stats/users
GET
Getuserswithaccesstotheprotectedbranch — GitHub Get Users with Access to the Protected Branch
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users
POST
Adduseraccessrestrictions — GitHub Add User Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users
PUT
Setuseraccessrestrictions — GitHub Set User Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users
DELETE
Removeuseraccessrestrictions — GitHub Remove User Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users
GET
Searchusers — GitHub Search Users
/v1/search/users
GET
Gettheauthenticateduser — GitHub Get the Authenticated User
/v1/user
PATCH
Updatetheauthenticateduser — GitHub Update the Authenticated User
/v1/user
GET
Listemailaddressesfortheauthenticateduser — GitHub List Email Addresses for the Authenticated User
/v1/user/emails
POST
Addanemailaddressfortheauthenticateduser — GitHub Add an Email Address for the Authenticated User
/v1/user/emails
DELETE
Deleteanemailaddressfortheauthenticateduser — GitHub Delete an Email Address for the Authenticated User
/v1/user/emails
GET
Listfollowersoftheauthenticateduser — GitHub List Followers of the Authenticated User
/v1/user/followers
GET
Listthepeopletheauthenticateduserfollows — GitHub List the People the Authenticated User Follows
/v1/user/following
GET
Checkifpersonisfollowedbytheauthenticateduser — GitHub Check if Person is Followed by the Authenticated User
/v1/user/following/{username}
PUT
Followuser — GitHub Follow User
/v1/user/following/{username}
DELETE
Unfollowuser — GitHub Unfollow User
/v1/user/following/{username}
GET
Listgpgkeysfortheauthenticateduser — GitHub List Gpg Keys for the Authenticated User
/v1/user/gpg-keys
POST
Creategpgkeyfortheauthenticateduser — GitHub Create Gpg Key for the Authenticated User
/v1/user/gpg-keys
GET
Getgpgkeyfortheauthenticateduser — GitHub Get Gpg Key for the Authenticated User
/v1/user/gpg-keys/{gpg-key-id}
DELETE
Deletegpgkeyfortheauthenticateduser — GitHub Delete Gpg Key for the Authenticated User
/v1/user/gpg-keys/{gpg-key-id}
GET
Listappinstallationsaccessibletotheuseraccesstoken — GitHub List App Installations Accessible to the User Access Token
/v1/user/installations
GET
Listrepositoriesaccessibletotheuseraccesstoken — GitHub List Repositories Accessible to the User Access Token
/v1/user/installations/{installation-id}/repositories
GET
Listuseraccountissuesassignedtotheauthenticateduser — GitHub List User Account Issues Assigned to the Authenticated User
/v1/user/issues
GET
Listpublicsshkeysfortheauthenticateduser — GitHub List Public Ssh Keys for the Authenticated User
/v1/user/keys
POST
Createpublicsshkeyfortheauthenticateduser — GitHub Create Public Ssh Key for the Authenticated User
/v1/user/keys
GET
Getpublicsshkeyfortheauthenticateduser — GitHub Get Public Ssh Key for the Authenticated User
/v1/user/keys/{key-id}
DELETE
Deletepublicsshkeyfortheauthenticateduser — GitHub Delete Public Ssh Key for the Authenticated User
/v1/user/keys/{key-id}
GET
Listorganizationmembershipsfortheauthenticateduser — GitHub List Organization Memberships for the Authenticated User
/v1/user/memberships/orgs
GET
Getanorganizationmembershipfortheauthenticateduser — GitHub Get an Organization Membership for the Authenticated User
/v1/user/memberships/orgs/{org}
PATCH
Updateanorganizationmembershipfortheauthenticateduser — GitHub Update an Organization Membership for the Authenticated User
/v1/user/memberships/orgs/{org}
GET
Listusermigrations — GitHub List User Migrations
/v1/user/migrations
POST
Startusermigration — GitHub Start User Migration
/v1/user/migrations
GET
Downloadusermigrationarchive — GitHub Download User Migration Archive
/v1/user/migrations/{migration-id}/archive
GET
Listrepositoriesforusermigration — GitHub List Repositories for User Migration
/v1/user/migrations/{migration-id}/repositories
GET
Listorganizationsfortheauthenticateduser — GitHub List Organizations for the Authenticated User
/v1/user/orgs
GET
Getpackagefortheauthenticateduser — GitHub Get Package for the Authenticated User
/v1/user/packages/{package-type}/{package-name}
DELETE
Deletepackagefortheauthenticateduser — GitHub Delete Package for the Authenticated User
/v1/user/packages/{package-type}/{package-name}
POST
Restorepackagefortheauthenticateduser — GitHub Restore Package for the Authenticated User
/v1/user/packages/{package-type}/{package-name}/restore
GET
Listpackageversionsforpackageownedbytheauthenticateduser — GitHub List Package Versions for Package Owned by the Authenticated User
/v1/user/packages/{package-type}/{package-name}/versions
GET
Getpackageversionfortheauthenticateduser — GitHub Get Package Version for the Authenticated User
/v1/user/packages/{package-type}/{package-name}/versions/{package-version-id}
DELETE
Deletepackageversionfortheauthenticateduser — GitHub Delete Package Version for the Authenticated User
/v1/user/packages/{package-type}/{package-name}/versions/{package-version-id}
POST
Restorepackageversionfortheauthenticateduser — GitHub Restore Package Version for the Authenticated User
/v1/user/packages/{package-type}/{package-name}/versions/{package-version-id}/restore
POST
Createuserproject — GitHub Create User Project
/v1/user/projects
GET
Listpublicemailaddressesfortheauthenticateduser — GitHub List Public Email Addresses for the Authenticated User
/v1/user/public-emails
GET
Listrepositoriesfortheauthenticateduser — GitHub List Repositories for the Authenticated User
/v1/user/repos
POST
Createrepositoryfortheauthenticateduser — GitHub Create Repository for the Authenticated User
/v1/user/repos
GET
Listrepositoryinvitationsfortheauthenticateduser — GitHub List Repository Invitations for the Authenticated User
/v1/user/repository-invitations
GET
Listsocialaccountsfortheauthenticateduser — GitHub List Social Accounts for the Authenticated User
/v1/user/social-accounts
POST
Addsocialaccountsfortheauthenticateduser — GitHub Add Social Accounts for the Authenticated User
/v1/user/social-accounts
DELETE
Deletesocialaccountsfortheauthenticateduser — GitHub Delete Social Accounts for the Authenticated User
/v1/user/social-accounts
GET
Listsshsigningkeysfortheauthenticateduser — GitHub List Ssh Signing Keys for the Authenticated User
/v1/user/ssh-signing-keys
POST
Createsshsigningkeyfortheauthenticateduser — GitHub Create Ssh Signing Key for the Authenticated User
/v1/user/ssh-signing-keys
GET
Getansshsigningkeyfortheauthenticateduser — GitHub Get an Ssh Signing Key for the Authenticated User
/v1/user/ssh-signing-keys/{ssh-signing-key-id}
DELETE
Deleteansshsigningkeyfortheauthenticateduser — GitHub Delete an Ssh Signing Key for the Authenticated User
/v1/user/ssh-signing-keys/{ssh-signing-key-id}
GET
Listrepositoriesstarredbytheauthenticateduser — GitHub List Repositories Starred by the Authenticated User
/v1/user/starred
GET
Checkifrepositoryisstarredbytheauthenticateduser — GitHub Check if Repository is Starred by the Authenticated User
/v1/user/starred/{owner}/{repo}
PUT
Starrepositoryfortheauthenticateduser — GitHub Star Repository for the Authenticated User
/v1/user/starred/{owner}/{repo}
DELETE
Unstarrepositoryfortheauthenticateduser — GitHub Unstar Repository for the Authenticated User
/v1/user/starred/{owner}/{repo}
GET
Listrepositorieswatchedbytheauthenticateduser — GitHub List Repositories Watched by the Authenticated User
/v1/user/subscriptions
GET
Listteamsfortheauthenticateduser — GitHub List Teams for the Authenticated User
/v1/user/teams
GET
Listusers — GitHub List Users
/v1/users
GET
Getuser — GitHub Get User
/v1/users/{username}
GET
Getlistofconflictingpackagesduringdockermigrationforuser — GitHub Get List of Conflicting Packages During Docker Migration for User
/v1/users/{username}/docker/conflicts
GET
Listeventsfortheauthenticateduser — GitHub List Events for the Authenticated User
/v1/users/{username}/events
GET
Listorganizationeventsfortheauthenticateduser — GitHub List Organization Events for the Authenticated User
/v1/users/{username}/events/orgs/{org}
GET
Listpubliceventsforuser — GitHub List Public Events for User
/v1/users/{username}/events/public
GET
Listfollowersofuser — GitHub List Followers of User
/v1/users/{username}/followers
GET
Listthepeopleuserfollows — GitHub List the People User Follows
/v1/users/{username}/following
GET
Checkifuserfollowsanotheruser — GitHub Check if User Follows Another User
/v1/users/{username}/following/{target-user}
GET
Listgistsforuser — GitHub List Gists for User
/v1/users/{username}/gists
GET
Listgpgkeysforuser — GitHub List Gpg Keys for User
/v1/users/{username}/gpg-keys
GET
Getcontextualinformationforuser — GitHub Get Contextual Information for User
/v1/users/{username}/hovercard
GET
Getuserinstallationfortheauthenticatedapp — GitHub Get User Installation for the Authenticated App
/v1/users/{username}/installation
GET
Listpublickeysforuser — GitHub List Public Keys for User
/v1/users/{username}/keys
GET
Listorganizationsforuser — GitHub List Organizations for User
/v1/users/{username}/orgs
GET
Listpackagesforuser — GitHub List Packages for User
/v1/users/{username}/packages
GET
Getpackageforuser — GitHub Get Package for User
/v1/users/{username}/packages/{package-type}/{package-name}
DELETE
Deletepackageforuser — GitHub Delete Package for User
/v1/users/{username}/packages/{package-type}/{package-name}
POST
Restorepackageforuser — GitHub Restore Package for User
/v1/users/{username}/packages/{package-type}/{package-name}/restore
GET
Listpackageversionsforpackageownedbyuser — GitHub List Package Versions for Package Owned by User
/v1/users/{username}/packages/{package-type}/{package-name}/versions
GET
Getpackageversionforuser — GitHub Get Package Version for User
/v1/users/{username}/packages/{package-type}/{package-name}/versions/{package-version-id}
DELETE
Deletepackageversionforuser — GitHub Delete Package Version for User
/v1/users/{username}/packages/{package-type}/{package-name}/versions/{package-version-id}
POST
Restorepackageversionforuser — GitHub Restore Package Version for User
/v1/users/{username}/packages/{package-type}/{package-name}/versions/{package-version-id}/restore
GET
Listuserprojects — GitHub List User Projects
/v1/users/{username}/projects
GET
Listeventsreceivedbytheauthenticateduser — GitHub List Events Received by the Authenticated User
/v1/users/{username}/received-events
GET
Listpubliceventsreceivedbyuser — GitHub List Public Events Received by User
/v1/users/{username}/received-events/public
GET
Listrepositoriesforuser — GitHub List Repositories for User
/v1/users/{username}/repos
PUT
Promoteusertobesiteadministrator — GitHub Promote User to Be Site Administrator
/v1/users/{username}/site-admin
GET
Listsocialaccountsforuser — GitHub List Social Accounts for User
/v1/users/{username}/social-accounts
GET
Listsshsigningkeysforuser — GitHub List Ssh Signing Keys for User
/v1/users/{username}/ssh-signing-keys
GET
Listrepositoriesstarredbyuser — GitHub List Repositories Starred by User
/v1/users/{username}/starred
GET
Listrepositorieswatchedbyuser — GitHub List Repositories Watched by User
/v1/users/{username}/subscriptions
PUT
Suspenduser — GitHub Suspend User
/v1/users/{username}/suspended
DELETE
Unsuspenduser — GitHub Unsuspend User
/v1/users/{username}/suspended

MCP Tools

github-update-ldap-mapping-user

GitHub Update Ldap Mapping for User

idempotent
github-sync-ldap-mapping-user

GitHub Sync Ldap Mapping for User

github-create-user

GitHub Create User

github-update-username-user

GitHub Update the Username for User

idempotent
github-delete-user

GitHub Delete User

idempotent
github-get-users-statistics

GitHub Get Users Statistics

read-only idempotent
github-get-users-access-protected

GitHub Get Users with Access to the Protected Branch

read-only idempotent
github-add-user-access-restrictions

GitHub Add User Access Restrictions

github-set-user-access-restrictions

GitHub Set User Access Restrictions

idempotent
github-remove-user-access-restrictions

GitHub Remove User Access Restrictions

idempotent
github-search-users

GitHub Search Users

read-only idempotent
github-get-authenticated-user

GitHub Get the Authenticated User

read-only idempotent
github-update-authenticated-user

GitHub Update the Authenticated User

idempotent
github-list-email-addresses-authenticated

GitHub List Email Addresses for the Authenticated User

read-only idempotent
github-add-email-address-authenticated

GitHub Add an Email Address for the Authenticated User

github-delete-email-address-authenticated

GitHub Delete an Email Address for the Authenticated User

idempotent
github-list-followers-authenticated-user

GitHub List Followers of the Authenticated User

read-only idempotent
github-list-people-authenticated-user

GitHub List the People the Authenticated User Follows

read-only idempotent
github-check-if-person-is

GitHub Check if Person is Followed by the Authenticated User

read-only idempotent
github-follow-user

GitHub Follow User

idempotent
github-unfollow-user

GitHub Unfollow User

idempotent
github-list-gpg-keys-authenticated

GitHub List Gpg Keys for the Authenticated User

read-only idempotent
github-create-gpg-key-authenticated

GitHub Create Gpg Key for the Authenticated User

github-get-gpg-key-authenticated

GitHub Get Gpg Key for the Authenticated User

read-only idempotent
github-delete-gpg-key-authenticated

GitHub Delete Gpg Key for the Authenticated User

idempotent
github-list-app-installations-accessible

GitHub List App Installations Accessible to the User Access Token

read-only idempotent
github-list-repositories-accessible-user

GitHub List Repositories Accessible to the User Access Token

read-only idempotent
github-list-user-account-issues

GitHub List User Account Issues Assigned to the Authenticated User

read-only idempotent
github-list-public-ssh-keys

GitHub List Public Ssh Keys for the Authenticated User

read-only idempotent
github-create-public-ssh-key

GitHub Create Public Ssh Key for the Authenticated User

github-get-public-ssh-key

GitHub Get Public Ssh Key for the Authenticated User

read-only idempotent
github-delete-public-ssh-key

GitHub Delete Public Ssh Key for the Authenticated User

idempotent
github-list-organization-memberships-authenticated

GitHub List Organization Memberships for the Authenticated User

read-only idempotent
github-get-organization-membership-authenticated

GitHub Get an Organization Membership for the Authenticated User

read-only idempotent
github-update-organization-membership-authenticated

GitHub Update an Organization Membership for the Authenticated User

idempotent
github-list-user-migrations

GitHub List User Migrations

read-only idempotent
github-start-user-migration

GitHub Start User Migration

github-download-user-migration-archive

GitHub Download User Migration Archive

read-only idempotent
github-list-repositories-user-migration

GitHub List Repositories for User Migration

read-only idempotent
github-list-organizations-authenticated-user

GitHub List Organizations for the Authenticated User

read-only idempotent
github-get-package-authenticated-user

GitHub Get Package for the Authenticated User

read-only idempotent
github-delete-package-authenticated-user

GitHub Delete Package for the Authenticated User

idempotent
github-restore-package-authenticated-user

GitHub Restore Package for the Authenticated User

github-list-package-versions-package

GitHub List Package Versions for Package Owned by the Authenticated User

read-only idempotent
github-get-package-version-authenticated

GitHub Get Package Version for the Authenticated User

read-only idempotent
github-delete-package-version-authenticated

GitHub Delete Package Version for the Authenticated User

idempotent
github-restore-package-version-authenticated

GitHub Restore Package Version for the Authenticated User

github-create-user-project

GitHub Create User Project

github-list-public-email-addresses

GitHub List Public Email Addresses for the Authenticated User

read-only idempotent
github-list-repositories-authenticated-user

GitHub List Repositories for the Authenticated User

read-only idempotent
github-create-repository-authenticated-user

GitHub Create Repository for the Authenticated User

github-list-repository-invitations-authenticated

GitHub List Repository Invitations for the Authenticated User

read-only idempotent
github-list-social-accounts-authenticated

GitHub List Social Accounts for the Authenticated User

read-only idempotent
github-add-social-accounts-authenticated

GitHub Add Social Accounts for the Authenticated User

github-delete-social-accounts-authenticated

GitHub Delete Social Accounts for the Authenticated User

idempotent
github-list-ssh-signing-keys

GitHub List Ssh Signing Keys for the Authenticated User

read-only idempotent
github-create-ssh-signing-key

GitHub Create Ssh Signing Key for the Authenticated User

github-get-ssh-signing-key

GitHub Get an Ssh Signing Key for the Authenticated User

read-only idempotent
github-delete-ssh-signing-key

GitHub Delete an Ssh Signing Key for the Authenticated User

idempotent
github-list-repositories-starred-authenticated

GitHub List Repositories Starred by the Authenticated User

read-only idempotent
github-check-if-repository-is

GitHub Check if Repository is Starred by the Authenticated User

read-only idempotent
github-star-repository-authenticated-user

GitHub Star Repository for the Authenticated User

idempotent
github-unstar-repository-authenticated-user

GitHub Unstar Repository for the Authenticated User

idempotent
github-list-repositories-watched-authenticated

GitHub List Repositories Watched by the Authenticated User

read-only idempotent
github-list-teams-authenticated-user

GitHub List Teams for the Authenticated User

read-only idempotent
github-list-users

GitHub List Users

read-only idempotent
github-get-user

GitHub Get User

read-only idempotent
github-get-list-conflicting-packages

GitHub Get List of Conflicting Packages During Docker Migration for User

read-only idempotent
github-list-events-authenticated-user

GitHub List Events for the Authenticated User

read-only idempotent
github-list-organization-events-authenticated

GitHub List Organization Events for the Authenticated User

read-only idempotent
github-list-public-events-user

GitHub List Public Events for User

read-only idempotent
github-list-followers-user

GitHub List Followers of User

read-only idempotent
github-list-people-user-follows

GitHub List the People User Follows

read-only idempotent
github-check-if-user-follows

GitHub Check if User Follows Another User

read-only idempotent
github-list-gists-user

GitHub List Gists for User

read-only idempotent
github-list-gpg-keys-user

GitHub List Gpg Keys for User

read-only idempotent
github-get-contextual-information-user

GitHub Get Contextual Information for User

read-only idempotent
github-get-user-installation-authenticated

GitHub Get User Installation for the Authenticated App

read-only idempotent
github-list-public-keys-user

GitHub List Public Keys for User

read-only idempotent
github-list-organizations-user

GitHub List Organizations for User

read-only idempotent
github-list-packages-user

GitHub List Packages for User

read-only idempotent
github-get-package-user

GitHub Get Package for User

read-only idempotent
github-delete-package-user

GitHub Delete Package for User

idempotent
github-restore-package-user

GitHub Restore Package for User

github-list-package-versions-package-2

GitHub List Package Versions for Package Owned by User

read-only idempotent
github-get-package-version-user

GitHub Get Package Version for User

read-only idempotent
github-delete-package-version-user

GitHub Delete Package Version for User

idempotent
github-restore-package-version-user

GitHub Restore Package Version for User

github-list-user-projects

GitHub List User Projects

read-only idempotent
github-list-events-received-authenticated

GitHub List Events Received by the Authenticated User

read-only idempotent
github-list-public-events-received

GitHub List Public Events Received by User

read-only idempotent
github-list-repositories-user

GitHub List Repositories for User

read-only idempotent
github-promote-user-be-site

GitHub Promote User to Be Site Administrator

idempotent
github-list-social-accounts-user

GitHub List Social Accounts for User

read-only idempotent
github-list-ssh-signing-keys-2

GitHub List Ssh Signing Keys for User

read-only idempotent
github-list-repositories-starred-user

GitHub List Repositories Starred by User

read-only idempotent
github-list-repositories-watched-user

GitHub List Repositories Watched by User

read-only idempotent
github-suspend-user

GitHub Suspend User

idempotent
github-unsuspend-user

GitHub Unsuspend User

idempotent

Capability Spec

users-users.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub User API — Users
  description: 'GitHub User API — Users. 99 operations. Lead operation: GitHub Update Ldap Mapping for User. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Users
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: users-users
    baseUri: ''
    description: GitHub User API — Users business capability. Self-contained, no shared references.
    resources:
    - name: admin-ldap-users-username-mapping
      path: /admin/ldap/users/{username}/mapping
      operations:
      - name: updateldapmappingforuser
        method: PATCH
        description: GitHub Update Ldap Mapping for User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: admin-ldap-users-username-sync
      path: /admin/ldap/users/{username}/sync
      operations:
      - name: syncldapmappingforuser
        method: POST
        description: GitHub Sync Ldap Mapping for User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: admin-users
      path: /admin/users
      operations:
      - name: createuser
        method: POST
        description: GitHub Create User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: admin-users-username
      path: /admin/users/{username}
      operations:
      - name: updatetheusernameforuser
        method: PATCH
        description: GitHub Update the Username for User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteuser
        method: DELETE
        description: GitHub Delete User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: enterprise-stats-users
      path: /enterprise/stats/users
      operations:
      - name: getusersstatistics
        method: GET
        description: GitHub Get Users Statistics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-branches-branch-protection-restrictions-users
      path: /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users
      operations:
      - name: getuserswithaccesstotheprotectedbranch
        method: GET
        description: GitHub Get Users with Access to the Protected Branch
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: adduseraccessrestrictions
        method: POST
        description: GitHub Add User Access Restrictions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: setuseraccessrestrictions
        method: PUT
        description: GitHub Set User Access Restrictions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: removeuseraccessrestrictions
        method: DELETE
        description: GitHub Remove User Access Restrictions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: search-users
      path: /search/users
      operations:
      - name: searchusers
        method: GET
        description: GitHub Search Users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          description: The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search
            to specific areas of GitHub Enterprise Server. The REST
          required: true
        - name: sort
          in: query
          type: string
          description: 'Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined`
            GitHub Enterprise Server. Default: [best match](https://'
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user
      path: /user
      operations:
      - name: gettheauthenticateduser
        method: GET
        description: GitHub Get the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: updatetheauthenticateduser
        method: PATCH
        description: GitHub Update the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: user-emails
      path: /user/emails
      operations:
      - name: listemailaddressesfortheauthenticateduser
        method: GET
        description: GitHub List Email Addresses for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: addanemailaddressfortheauthenticateduser
        method: POST
        description: GitHub Add an Email Address for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deleteanemailaddressfortheauthenticateduser
        method: DELETE
        description: GitHub Delete an Email Address for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: user-followers
      path: /user/followers
      operations:
      - name: listfollowersoftheauthenticateduser
        method: GET
        description: GitHub List Followers of the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-following
      path: /user/following
      operations:
      - name: listthepeopletheauthenticateduserfollows
        method: GET
        description: GitHub List the People the Authenticated User Follows
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-following-username
      path: /user/following/{username}
      operations:
      - name: checkifpersonisfollowedbytheauthenticateduser
        method: GET
        description: GitHub Check if Person is Followed by the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: followuser
        method: PUT
        description: GitHub Follow User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: unfollowuser
        method: DELETE
        description: GitHub Unfollow User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-gpg_keys
      path: /user/gpg_keys
      operations:
      - name: listgpgkeysfortheauthenticateduser
        method: GET
        description: GitHub List Gpg Keys for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: creategpgkeyfortheauthenticateduser
        method: POST
        description: GitHub Create Gpg Key for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: user-gpg_keys-gpg_key_id
      path: /user/gpg_keys/{gpg_key_id}
      operations:
      - name: getgpgkeyfortheauthenticateduser
        method: GET
        description: GitHub Get Gpg Key for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: deletegpgkeyfortheauthenticateduser
        method: DELETE
        description: GitHub Delete Gpg Key for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-installations
      path: /user/installations
      operations:
      - name: listappinstallationsaccessibletotheuseraccesstoken
        method: GET
        description: GitHub List App Installations Accessible to the User Access Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-installations-installation_id-repositories
      path: /user/installations/{installation_id}/repositories
      operations:
      - name: listrepositoriesaccessibletotheuseraccesstoken
        method: GET
        description: GitHub List Repositories Accessible to the User Access Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-issues
      path: /user/issues
      operations:
      - name: listuseraccountissuesassignedtotheauthenticateduser
        method: GET
        description: GitHub List User Account Issues Assigned to the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: string
          description: Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means
            issues created by you. `mentioned` means issues mentioning y
        - name: state
          in: query
          type: string
          description: Indicates the state of the issues to return.
        - name: sort
          in: query
          type: string
          description: What to sort results by.
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-keys
      path: /user/keys
      operations:
      - name: listpublicsshkeysfortheauthenticateduser
        method: GET
        description: GitHub List Public Ssh Keys for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: createpublicsshkeyfortheauthenticateduser
        method: POST
        description: GitHub Create Public Ssh Key for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: user-keys-key_id
      path: /user/keys/{key_id}
      operations:
      - name: getpublicsshkeyfortheauthenticateduser
        method: GET
        description: GitHub Get Public Ssh Key for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: deletepublicsshkeyfortheauthenticateduser
        method: DELETE
        description: GitHub Delete Public Ssh Key for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-memberships-orgs
      path: /user/memberships/orgs
      operations:
      - name: listorganizationmembershipsfortheauthenticateduser
        method: GET
        description: GitHub List Organization Memberships for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: state
          in: query
          type: string
          description: Indicates the state of the memberships to return. If not specified, the API returns both active and
            pending memberships.
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-memberships-orgs-org
      path: /user/memberships/orgs/{org}
      operations:
      - name: getanorganizationmembershipfortheauthenticateduser
        method: GET
        description: GitHub Get an Organization Membership for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: updateanorganizationmembershipfortheauthenticateduser
        method: PATCH
        description: GitHub Update an Organization Membership for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: user-migrations
      path: /user/migrations
      operations:
      - name: listusermigrations
        method: GET
        description: GitHub List User Migrations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: startusermigration
        method: POST
        description: GitHub Start User Migration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: user-migrations-migration_id-archive
      path: /user/migrations/{migration_id}/archive
      operations:
      - name: downloadusermigrationarchive
        method: GET
        description: GitHub Download User Migration Archive
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-migrations-migration_id-repositories
      path: /user/migrations/{migration_id}/repositories
      operations:
      - name: listrepositoriesforusermigration
        method: GET
        description: GitHub List Repositories for User Migration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-orgs
      path: /user/orgs
      operations:
      - name: listorganizationsfortheauthenticateduser
        method: GET
        description: GitHub List Organizations for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-packages-package_type-package_name
      path: /user/packages/{package_type}/{package_name}
      operations:
      - name: getpackagefortheauthenticateduser
        method: GET
        description: GitHub Get Package for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: deletepackagefortheauthenticateduser
        method: DELETE
        description: GitHub Delete Package for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-packages-package_type-package_name-restore
      path: /user/packages/{package_type}/{package_name}/restore
      operations:
      - name: restorepackagefortheauthenticateduser
        method: POST
        description: GitHub Restore Package for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: token
          in: query
          type: string
          description: package token
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-packages-package_type-package_name-versions
      path: /user/packages/{package_type}/{package_name}/versions
      operations:
      - name: listpackageversionsforpackageownedbytheauthenticateduser
        method: GET
        description: GitHub List Package Versions for Package Owned by the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: state
          in: query
          type: string
          description: The state of the package, either active or deleted.
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-packages-package_type-package_name-versions-package_version_id
      path: /user/packages/{package_type}/{package_name}/versions/{package_version_id}
      operations:
      - name: getpackageversionfortheauthenticateduser
        method: GET
        description: GitHub Get Package Version for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: deletepackageversionfortheauthenticateduser
        method: DELETE
        description: GitHub Delete Package Version for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-packages-package_type-package_name-versions-package_version_id-restore
      path: /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore
      operations:
      - name: restorepackageversionfortheauthenticateduser
        method: POST
        description: GitHub Restore Package Version for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-projects
      path: /user/projects
      operations:
      - name: createuserproject
        method: POST
        description: GitHub Create User Project
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: user-public_emails
      path: /user/public_emails
      operations:
      - name: listpublicemailaddressesfortheauthenticateduser
        method: GET
        description: GitHub List Public Email Addresses for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-repos
      path: /user/repos
      operations:
      - name: listrepositoriesfortheauthenticateduser
        method: GET
        description: GitHub List Repositories for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: visibility
          in: query
          type: string
          description: Limit results to repositories with the specified visibility.
        - name: affiliation
          in: query
          type: string
          description: 'Comma-separated list of values. Can include:  '
        - name: type
          in: query
          type: string
          description: Limit results to repositories of the specified type. Will cause a `422` error if used in the same request

# --- truncated at 32 KB (161 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/capabilities/users-users.yaml