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

Method scimGetUsers

enterprise/coderd/scim.go:121–133  ·  view source on GitHub ↗

scimGetUsers intentionally always returns no users. This is done to always force Okta to try and create each user individually, this way we don't need to implement fetching users twice. @Summary SCIM 2.0: Get users @ID scim-get-users @Security Authorization @Produce application/scim+json @Tags Ente

(rw http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

119//
120//nolint:revive
121func (api *API) scimGetUsers(rw http.ResponseWriter, r *http.Request) {
122 if !api.scimVerifyAuthHeader(r) {
123 scimUnauthorized(rw)
124 return
125 }
126
127 _ = handlerutil.WriteSearchResultToResponse(rw, &service.QueryResponse{
128 TotalResults: 0,
129 StartIndex: 1,
130 ItemsPerPage: 0,
131 Resources: []scimjson.Serializable{},
132 })
133}
134
135// scimGetUser intentionally always returns an error saying the user wasn't found.
136// This is done to always force Okta to try and create the user, this way we

Callers

nothing calls this directly

Calls 2

scimVerifyAuthHeaderMethod · 0.95
scimUnauthorizedFunction · 0.85

Tested by

no test coverage detected