Function github_rest::methods::get_user_organizations
source · pub async fn get_user_organizations<T, A>(
client: &T,
user: A,
params: Option<&Pagination>
) -> Result<Vec<SimpleOrganization>, GithubRestError>where
T: Requester,
A: Into<String>,
Expand description
- tags orgs
- get
/users/{username}/orgs
- docs https://docs.github.com/rest/reference/orgs#list-organizations-for-a-user
List organizations for a user List public organization memberships for the specified user.
This method only lists public memberships, regardless of authentication. If you need to fetch all of the organization memberships (public and private) for the authenticated user, use the List organizations for the authenticated user API instead.