MCPcopy Index your code
hub / github.com/coder/coder / getCurrentOrgId

Function getCurrentOrgId

site/e2e/api.ts:24–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22};
23
24export const getCurrentOrgId = async (): Promise<string> => {
25 if (currentOrgId) {
26 return currentOrgId;
27 }
28 const currentUser = await API.getAuthenticatedUser();
29 currentOrgId = currentUser.organization_ids[0];
30 return currentOrgId;
31};
32
33export const createUser = async (...orgIds: string[]) => {
34 const name = randomName();

Calls

no outgoing calls

Tested by

no test coverage detected