MCPcopy
hub / github.com/determined-ai/determined / SCIMUser

Struct SCIMUser

master/pkg/model/scim_user.go:82–99  ·  view source on GitHub ↗

SCIMUser is a user in SCIM.

Source from the content-addressed store, hash-verified

80
81// SCIMUser is a user in SCIM.
82type SCIMUser struct {
83 ID UUID `bun:"id" json:"id"`
84 Username string `bun:"username" json:"userName"`
85 ExternalID string `bun:"external_id" json:"externalId"`
86 Name SCIMName `bun:"name" json:"name"`
87 DisplayName null.String `bun:"display_name" json:"displayName"`
88 Emails SCIMEmails `bun:"emails" json:"emails"`
89 Active bool `bun:"active" json:"active"`
90
91 PasswordHash null.String `bun:"password_hash" json:"password_hash,omitempty"`
92
93 Password string `json:"password,omitempty"`
94 Schemas SCIMUserSchemas `json:"schemas"`
95 Meta *SCIMUserMeta `json:"meta"`
96
97 UserID UserID `bun:"user_id" json:"-"`
98 RawAttributes map[string]interface{} `bun:"raw_attributes" json:"-"`
99}
100
101// Validate checks that external data satisfies the expected invariants.
102func (u SCIMUser) Validate() []error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected