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

Method InsertUserGroupsByID

coderd/database/dbauthz/dbauthz.go:5868–5874  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertUserGroupsByIDParams)

Source from the content-addressed store, hash-verified

5866}
5867
5868func (q *querier) InsertUserGroupsByID(ctx context.Context, arg database.InsertUserGroupsByIDParams) ([]uuid.UUID, error) {
5869 // This is used by OIDC sync. So only used by a system user.
5870 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceSystem); err != nil {
5871 return nil, err
5872 }
5873 return q.db.InsertUserGroupsByID(ctx, arg)
5874}
5875
5876// TODO: Should this be in system.go?
5877func (q *querier) InsertUserLink(ctx context.Context, arg database.InsertUserLinkParams) (database.UserLink, error) {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
InsertUserGroupsByIDMethod · 0.65

Tested by

no test coverage detected