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

Function createUser

site/e2e/api.ts:33–46  ·  view source on GitHub ↗
(...orgIds: string[])

Source from the content-addressed store, hash-verified

31};
32
33export const createUser = async (...orgIds: string[]) => {
34 const name = randomName();
35 const user = await API.createUser({
36 email: `${name}@coder.com`,
37 username: name,
38 name: name,
39 password: defaultPassword,
40 login_type: "password",
41 organization_ids: orgIds,
42 user_status: null,
43 });
44
45 return user;
46};
47
48type CreateOrganizationMemberOptions = {
49 username?: string;

Calls 1

randomNameFunction · 0.90

Tested by

no test coverage detected