Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/kd_clients/mod.ts>OrgClient#userIsOrgMember

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

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

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.