Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/kd_clients/GitHubClients/OrgClient.ts>OrgClient#userIsOrgAdminMember

Various HTTP clients for miscellaneous use.
Go to Latest
method OrgClient.prototype.userIsOrgAdminMember
import { OrgClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.12/GitHubClients/OrgClient.ts";

Gets a value indicating whether or not a public or private user with a name that matches the given username is a member of an organization with a name that matches, the OrgClient.ownerName and has an admin role.

Parameters

username: string

The username of the user that might exist in the organization.

Returns

Promise<boolean>

True if the user is a member of the organization, false otherwise.