Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kd_clients/mod.ts>OrgClient#userIsOrgAdminMember

Various HTTP clients for miscellaneous use.
Latest
method OrgClient.prototype.userIsOrgAdminMember
import { OrgClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.14/mod.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.