All URIs are relative to https://cockroachlabs.cloud
| Method | HTTP request | Description |
|---|---|---|
| CreateGroup | Post /api/scim/v2/Groups | Create a group |
| CreateUser | Post /api/scim/v2/Users | Create a user |
| DeleteGroup | Delete /api/scim/v2/Groups/{id} | Delete a group based on ID |
| DeleteUser | Delete /api/scim/v2/Users/{id} | Delete a user based on ID |
| GetGroup | Get /api/scim/v2/Groups/{id} | Get a group by ID |
| GetGroup2 | Put /api/scim/v2/Groups/{id}/.search | Search a group by ID (Deprecated) |
| GetGroups | Get /api/scim/v2/Groups | List groups |
| GetGroups2 | Put /api/scim/v2/Groups/.search | Search groups (Deprecated) |
| GetResourceType | Get /api/scim/v2/ResourceTypes/{resourceId} | Get a SCIM resource type by ID |
| GetResourceTypes | Get /api/scim/v2/ResourceTypes | List the SCIM resource types |
| GetSchema | Get /api/scim/v2/Schemas/{schemaId} | Get a SCIM schema by ID |
| GetSchemas | Get /api/scim/v2/Schemas | List the SCIM schemas |
| GetServiceProviderConfig | Get /api/scim/v2/ServiceProviderConfig | Return the SCIM Service Provider configuration |
| GetUser | Get /api/scim/v2/Users/{id} | Get a user by ID |
| GetUser2 | Put /api/scim/v2/Users/{id}/.search | Search for a user by ID (Deprecated) |
| GetUsers | Get /api/scim/v2/Users | List Users |
| GetUsers2 | Put /api/scim/v2/Users/.search | Search User (Deprecated) |
| PatchGroup | Patch /api/scim/v2/Groups/{id} | Patch a group by supplying partial updates |
| PatchUser | Patch /api/scim/v2/Users/{id} | Patch a user by supplying partial updates |
| SearchGroup | Post /api/scim/v2/Groups/{id}/.search | Search a group by ID |
| SearchGroups | Post /api/scim/v2/Groups/.search | Search groups |
| SearchUser | Post /api/scim/v2/Users/{id}/.search | Search for a user by ID |
| SearchUsers | Post /api/scim/v2/Users/.search | Search Users |
| UpdateGroup | Put /api/scim/v2/Groups/{id} | Update a group by supplying all values of the user object |
| UpdateUser | Put /api/scim/v2/Users/{id} | Update a user by supplying all values of the user object |
ScimGroup CreateGroup(ctx).CreateGroupRequest(createGroupRequest).Execute()
Create a group
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
createGroupRequest := *openapiclient.NewCreateGroupRequest("DisplayName_example", []string{"Schemas_example"}) // CreateGroupRequest |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.CreateGroup(context.Background()).CreateGroupRequest(createGroupRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.CreateGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateGroup`: ScimGroup
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.CreateGroup`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
| Name | Type | Description | Notes |
|---|---|---|---|
| createGroupRequest | CreateGroupRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
CreateUserResponse CreateUser(ctx).CreateUserRequest(createUserRequest).Execute()
Create a user
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
createUserRequest := *openapiclient.NewCreateUserRequest([]openapiclient.ScimEmail{*openapiclient.NewScimEmail("Value_example")}, []string{"Schemas_example"}) // CreateUserRequest |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.CreateUser(context.Background()).CreateUserRequest(createUserRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.CreateUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateUser`: CreateUserResponse
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.CreateUser`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
| Name | Type | Description | Notes |
|---|---|---|---|
| createUserRequest | CreateUserRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
map[string]interface{} DeleteGroup(ctx, id).Execute()
Delete a group based on ID
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.DeleteGroup(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.DeleteGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteGroup`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.DeleteGroup`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string |
| Name | Type | Description | Notes |
|---|
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
map[string]interface{} DeleteUser(ctx, id).Execute()
Delete a user based on ID
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.DeleteUser(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.DeleteUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteUser`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.DeleteUser`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string |
| Name | Type | Description | Notes |
|---|
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
ScimGroup GetGroup(ctx, id).Attributes(attributes).ExcludedAttributes(excludedAttributes).Execute()
Get a group by ID
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
attributes := "attributes_example" // string | (optional)
excludedAttributes := "excludedAttributes_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.GetGroup(context.Background(), id).Attributes(attributes).ExcludedAttributes(excludedAttributes).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.GetGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetGroup`: ScimGroup
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.GetGroup`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string |
Optional parameters can be passed through a pointer to the GetGroupOptions struct.
| Name | Type | Description | Notes |
|---|
attributes | string | | excludedAttributes | string | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
ScimGroup GetGroup2(ctx, id).GetGroupRequest(getGroupRequest).Execute()
Search a group by ID (Deprecated)
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
getGroupRequest := *openapiclient.NewGetGroupRequest() // GetGroupRequest |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.GetGroup2(context.Background(), id).GetGroupRequest(getGroupRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.GetGroup2``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetGroup2`: ScimGroup
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.GetGroup2`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string |
| Name | Type | Description | Notes |
|---|
getGroupRequest | GetGroupRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
GetGroupsResponse GetGroups(ctx).Attributes(attributes).ExcludedAttributes(excludedAttributes).Filter(filter).Count(count).StartIndex(startIndex).Execute()
List groups
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
attributes := "attributes_example" // string | (optional)
excludedAttributes := "excludedAttributes_example" // string | (optional)
filter := "filter_example" // string | (optional)
count := int32(56) // int32 | The maximum number of resources to return. If omitted, defaults to 20. If set to 0, the response will contain no resources but will include metadata such as `totalResults`, complying with [RFC 7644, Section 3.4.2.4: Pagination](https://datatracker.ietf.org/doc/html/rfc7644#section-3.4.2.4). (optional)
startIndex := int32(56) // int32 | The 1-based index of the first resource to return in the response. If omitted or less than 1, defaults to 1. This behavior complies with [RFC 7644, Section 3.4.2.4: Pagination](https://datatracker.ietf.org/doc/html/rfc7644#section-3.4.2.4). (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.GetGroups(context.Background()).Attributes(attributes).ExcludedAttributes(excludedAttributes).Filter(filter).Count(count).StartIndex(startIndex).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.GetGroups``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetGroups`: GetGroupsResponse
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.GetGroups`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
Optional parameters can be passed through a pointer to the GetGroupsOptions struct.
| Name | Type | Description | Notes |
|---|---|---|---|
| attributes | string | ||
| excludedAttributes | string | ||
| filter | string | ||
| count | int32 | The maximum number of resources to return. If omitted, defaults to 20. If set to 0, the response will contain no resources but will include metadata such as `totalResults`, complying with RFC 7644, Section 3.4.2.4: Pagination. | |
| startIndex | int32 | The 1-based index of the first resource to return in the response. If omitted or less than 1, defaults to 1. This behavior complies with RFC 7644, Section 3.4.2.4: Pagination. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
GetGroupsResponse GetGroups2(ctx).GetGroupsRequest(getGroupsRequest).Execute()
Search groups (Deprecated)
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
getGroupsRequest := *openapiclient.NewGetGroupsRequest() // GetGroupsRequest |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.GetGroups2(context.Background()).GetGroupsRequest(getGroupsRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.GetGroups2``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetGroups2`: GetGroupsResponse
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.GetGroups2`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
| Name | Type | Description | Notes |
|---|---|---|---|
| getGroupsRequest | GetGroupsRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
ScimResourceType GetResourceType(ctx, resourceId).Attributes(attributes).ExcludedAttributes(excludedAttributes).Execute()
Get a SCIM resource type by ID
This endpoint may be used by any member of the organization.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
resourceId := "resourceId_example" // string |
attributes := "attributes_example" // string | (optional)
excludedAttributes := "excludedAttributes_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.GetResourceType(context.Background(), resourceId).Attributes(attributes).ExcludedAttributes(excludedAttributes).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.GetResourceType``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetResourceType`: ScimResourceType
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.GetResourceType`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| resourceId | string |
Optional parameters can be passed through a pointer to the GetResourceTypeOptions struct.
| Name | Type | Description | Notes |
|---|
attributes | string | | excludedAttributes | string | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
GetResourceTypesResponse GetResourceTypes(ctx).Attributes(attributes).ExcludedAttributes(excludedAttributes).Execute()
List the SCIM resource types
This endpoint may be used by any member of the organization.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
attributes := "attributes_example" // string | (optional)
excludedAttributes := "excludedAttributes_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.GetResourceTypes(context.Background()).Attributes(attributes).ExcludedAttributes(excludedAttributes).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.GetResourceTypes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetResourceTypes`: GetResourceTypesResponse
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.GetResourceTypes`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
Optional parameters can be passed through a pointer to the GetResourceTypesOptions struct.
| Name | Type | Description | Notes |
|---|---|---|---|
| attributes | string | ||
| excludedAttributes | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
ScimSchema GetSchema(ctx, schemaId).Attributes(attributes).ExcludedAttributes(excludedAttributes).Execute()
Get a SCIM schema by ID
This endpoint may be used by any member of the organization.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
schemaId := "schemaId_example" // string |
attributes := "attributes_example" // string | (optional)
excludedAttributes := "excludedAttributes_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.GetSchema(context.Background(), schemaId).Attributes(attributes).ExcludedAttributes(excludedAttributes).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.GetSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetSchema`: ScimSchema
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.GetSchema`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| schemaId | string |
Optional parameters can be passed through a pointer to the GetSchemaOptions struct.
| Name | Type | Description | Notes |
|---|
attributes | string | | excludedAttributes | string | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
GetSchemasResponse GetSchemas(ctx).Attributes(attributes).ExcludedAttributes(excludedAttributes).Execute()
List the SCIM schemas
This endpoint may be used by any member of the organization.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
attributes := "attributes_example" // string | (optional)
excludedAttributes := "excludedAttributes_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.GetSchemas(context.Background()).Attributes(attributes).ExcludedAttributes(excludedAttributes).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.GetSchemas``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetSchemas`: GetSchemasResponse
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.GetSchemas`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
Optional parameters can be passed through a pointer to the GetSchemasOptions struct.
| Name | Type | Description | Notes |
|---|---|---|---|
| attributes | string | ||
| excludedAttributes | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
GetServiceProviderConfigResponse GetServiceProviderConfig(ctx).Execute()
Return the SCIM Service Provider configuration
This endpoint may be used by any member of the organization.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.GetServiceProviderConfig(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.GetServiceProviderConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetServiceProviderConfig`: GetServiceProviderConfigResponse
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.GetServiceProviderConfig`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
GetServiceProviderConfigResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
ScimUser GetUser(ctx, id).Attributes(attributes).ExcludedAttributes(excludedAttributes).Execute()
Get a user by ID
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
attributes := "attributes_example" // string | (optional)
excludedAttributes := "excludedAttributes_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.GetUser(context.Background(), id).Attributes(attributes).ExcludedAttributes(excludedAttributes).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.GetUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUser`: ScimUser
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.GetUser`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string |
Optional parameters can be passed through a pointer to the GetUserOptions struct.
| Name | Type | Description | Notes |
|---|
attributes | string | | excludedAttributes | string | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
ScimUser GetUser2(ctx, id).GetUserRequest(getUserRequest).Execute()
Search for a user by ID (Deprecated)
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
getUserRequest := *openapiclient.NewGetUserRequest() // GetUserRequest |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.GetUser2(context.Background(), id).GetUserRequest(getUserRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.GetUser2``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUser2`: ScimUser
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.GetUser2`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string |
| Name | Type | Description | Notes |
|---|
getUserRequest | GetUserRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
GetUsersResponse GetUsers(ctx).Filter(filter).Attributes(attributes).ExcludedAttributes(excludedAttributes).Count(count).StartIndex(startIndex).Execute()
List Users
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
filter := "filter_example" // string | (optional)
attributes := "attributes_example" // string | (optional)
excludedAttributes := "excludedAttributes_example" // string | (optional)
count := int32(56) // int32 | The maximum number of resources to return. If omitted, defaults to 20. If set to 0, the response will contain no resources but will include metadata such as `totalResults`, complying with [RFC 7644, Section 3.4.2.4: Pagination](https://datatracker.ietf.org/doc/html/rfc7644#section-3.4.2.4). (optional)
startIndex := int32(56) // int32 | The 1-based index of the first resource to return in the response. If omitted or less than 1, defaults to 1. This behavior complies with [RFC 7644, Section 3.4.2.4: Pagination](https://datatracker.ietf.org/doc/html/rfc7644#section-3.4.2.4). (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.GetUsers(context.Background()).Filter(filter).Attributes(attributes).ExcludedAttributes(excludedAttributes).Count(count).StartIndex(startIndex).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.GetUsers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUsers`: GetUsersResponse
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.GetUsers`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
Optional parameters can be passed through a pointer to the GetUsersOptions struct.
| Name | Type | Description | Notes |
|---|---|---|---|
| filter | string | ||
| attributes | string | ||
| excludedAttributes | string | ||
| count | int32 | The maximum number of resources to return. If omitted, defaults to 20. If set to 0, the response will contain no resources but will include metadata such as `totalResults`, complying with RFC 7644, Section 3.4.2.4: Pagination. | |
| startIndex | int32 | The 1-based index of the first resource to return in the response. If omitted or less than 1, defaults to 1. This behavior complies with RFC 7644, Section 3.4.2.4: Pagination. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
GetUsersResponse GetUsers2(ctx).GetUsersRequest(getUsersRequest).Execute()
Search User (Deprecated)
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
getUsersRequest := *openapiclient.NewGetUsersRequest() // GetUsersRequest |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.GetUsers2(context.Background()).GetUsersRequest(getUsersRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.GetUsers2``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUsers2`: GetUsersResponse
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.GetUsers2`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
| Name | Type | Description | Notes |
|---|---|---|---|
| getUsersRequest | GetUsersRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
ScimGroup PatchGroup(ctx, id).PatchGroupRequest(patchGroupRequest).Execute()
Patch a group by supplying partial updates
Apply a sequence of operations to modify attributes of a SCIM Group resource. Supports 'add', 'remove', and 'replace' operations per RFC 7644 Section 3.5.2. Operations are applied atomically — if any operation fails, no changes are applied. The request body must include the 'schemas' field set to 'urn:ietf:params:scim:api:messages:2.0:PatchOp'.
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
patchGroupRequest := *openapiclient.NewPatchGroupRequest([]openapiclient.ScimOperations{*openapiclient.NewScimOperations("Op_example")}, []string{"Schemas_example"}) // PatchGroupRequest |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.PatchGroup(context.Background(), id).PatchGroupRequest(patchGroupRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.PatchGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PatchGroup`: ScimGroup
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.PatchGroup`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string |
| Name | Type | Description | Notes |
|---|
patchGroupRequest | PatchGroupRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
ScimUser PatchUser(ctx, id).PatchUserRequest(patchUserRequest).Execute()
Patch a user by supplying partial updates
Apply a sequence of operations to modify attributes of a SCIM User resource. Supports 'add', 'remove', and 'replace' operations per RFC 7644 Section 3.5.2. Operations are applied atomically — if any operation fails, no changes are applied. The request body must include the 'schemas' field set to 'urn:ietf:params:scim:api:messages:2.0:PatchOp'.
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
patchUserRequest := *openapiclient.NewPatchUserRequest([]openapiclient.ScimOperations{*openapiclient.NewScimOperations("Op_example")}, []string{"Schemas_example"}) // PatchUserRequest |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.PatchUser(context.Background(), id).PatchUserRequest(patchUserRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.PatchUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PatchUser`: ScimUser
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.PatchUser`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string |
| Name | Type | Description | Notes |
|---|
patchUserRequest | PatchUserRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
ScimGroup SearchGroup(ctx, id).GetGroupRequest(getGroupRequest).Execute()
Search a group by ID
Similar to GetGroup however search parameters are passed via the POST body. See https://www.rfc-editor.org/rfc/rfc7644.html#section-3.4.3 for more details.
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
getGroupRequest := *openapiclient.NewGetGroupRequest() // GetGroupRequest |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.SearchGroup(context.Background(), id).GetGroupRequest(getGroupRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.SearchGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SearchGroup`: ScimGroup
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.SearchGroup`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string |
| Name | Type | Description | Notes |
|---|
getGroupRequest | GetGroupRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
GetGroupsResponse SearchGroups(ctx).GetGroupsRequest(getGroupsRequest).Execute()
Search groups
Similar to GetGroups however search parameters are passed via the POST body. See https://www.rfc-editor.org/rfc/rfc7644.html#section-3.4.3 for more details.
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
getGroupsRequest := *openapiclient.NewGetGroupsRequest() // GetGroupsRequest |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.SearchGroups(context.Background()).GetGroupsRequest(getGroupsRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.SearchGroups``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SearchGroups`: GetGroupsResponse
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.SearchGroups`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
| Name | Type | Description | Notes |
|---|---|---|---|
| getGroupsRequest | GetGroupsRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
ScimUser SearchUser(ctx, id).GetUserRequest(getUserRequest).Execute()
Search for a user by ID
Similar to GetUser however search parameters are passed via the POST body. See https://www.rfc-editor.org/rfc/rfc7644.html#section-3.4.3 for more details.
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
getUserRequest := *openapiclient.NewGetUserRequest() // GetUserRequest |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.SearchUser(context.Background(), id).GetUserRequest(getUserRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.SearchUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SearchUser`: ScimUser
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.SearchUser`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string |
| Name | Type | Description | Notes |
|---|
getUserRequest | GetUserRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
GetUsersResponse SearchUsers(ctx).GetUsersRequest(getUsersRequest).Execute()
Search Users
Similar to GetUsers however search parameters are passed via the POST body. See https://www.rfc-editor.org/rfc/rfc7644.html#section-3.4.3 for more details.
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
getUsersRequest := *openapiclient.NewGetUsersRequest() // GetUsersRequest |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.SearchUsers(context.Background()).GetUsersRequest(getUsersRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.SearchUsers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SearchUsers`: GetUsersResponse
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.SearchUsers`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
| Name | Type | Description | Notes |
|---|---|---|---|
| getUsersRequest | GetUsersRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
ScimGroup UpdateGroup(ctx, id).UpdateGroupRequest(updateGroupRequest).Execute()
Update a group by supplying all values of the user object
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
updateGroupRequest := *openapiclient.NewUpdateGroupRequest("DisplayName_example", []string{"Schemas_example"}) // UpdateGroupRequest |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.UpdateGroup(context.Background(), id).UpdateGroupRequest(updateGroupRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.UpdateGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateGroup`: ScimGroup
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.UpdateGroup`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string |
| Name | Type | Description | Notes |
|---|
updateGroupRequest | UpdateGroupRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
ScimUser UpdateUser(ctx, id).UpdateUserRequest(updateUserRequest).Execute()
Update a user by supplying all values of the user object
Can be used by the following roles assigned at the organization scope:
- ORG_ADMIN
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
updateUserRequest := *openapiclient.NewUpdateUserRequest() // UpdateUserRequest |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewClient(configuration)
resp, r, err := api_client.SCIMApi.UpdateUser(context.Background(), id).UpdateUserRequest(updateUserRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SCIMApi.UpdateUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateUser`: ScimUser
fmt.Fprintf(os.Stdout, "Response from `SCIMApi.UpdateUser`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string |
| Name | Type | Description | Notes |
|---|
updateUserRequest | UpdateUserRequest | |
- Content-Type: application/json
- Accept: application/json