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

Method UpdateGroupSyncSettings

coderd/idpsync/group.go:33–41  ·  view source on GitHub ↗
(ctx context.Context, orgID uuid.UUID, db database.Store, settings GroupSyncSettings)

Source from the content-addressed store, hash-verified

31}
32
33func (s AGPLIDPSync) UpdateGroupSyncSettings(ctx context.Context, orgID uuid.UUID, db database.Store, settings GroupSyncSettings) error {
34 orgResolver := s.Manager.OrganizationResolver(db, orgID)
35 err := s.SyncSettings.Group.SetRuntimeValue(ctx, orgResolver, &settings)
36 if err != nil {
37 return xerrors.Errorf("update group sync settings: %w", err)
38 }
39
40 return nil
41}
42
43func (s AGPLIDPSync) GroupSyncSettings(ctx context.Context, orgID uuid.UUID, db database.Store) (*GroupSyncSettings, error) {
44 orgResolver := s.Manager.OrganizationResolver(db, orgID)

Callers

nothing calls this directly

Calls 3

OrganizationResolverMethod · 0.80
SetRuntimeValueMethod · 0.80
ErrorfMethod · 0.45

Tested by

no test coverage detected