MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / getUser

Method getUser

server/src/db/users-db.ts:34–40  ·  view source on GitHub ↗

* Get a user by their WorkOS user ID

(workosUserId: string)

Source from the content-addressed store, hash-verified

32 * Get a user by their WorkOS user ID
33 */
34 async getUser(workosUserId: string): Promise<User | null> {
35 const result = await query<User>(
36 `SELECT * FROM users WHERE workos_user_id = $1`,
37 [workosUserId]
38 );
39 return result.rows[0] || null;
40 }
41
42 /**
43 * Get user location

Callers 15

createAddieChatRouterFunction · 0.95
setupRoutesMethod · 0.80
setupAuthRoutesMethod · 0.80
getOrgAdminEmailsFunction · 0.80
getUserFunction · 0.80
upsertMembershipFunction · 0.80
backfillUsersFunction · 0.80
setupOrganizationRoutesFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected