ListSCIMConfigurations
client.Organizations.ScimConfigurations.List(ctx, params) (*ScimConfigurationsPage[ScimConfiguration], error)
POST/gitpod.v1.OrganizationService/ListSCIMConfigurations
Lists SCIM configurations for an organization.
Use this method to:
- View all SCIM configurations
- Monitor provisioning status
- Audit SCIM settings
Examples
-
List SCIM configurations:
Shows all SCIM configurations for an organization.
pagination: pageSize: 20
ListSCIMConfigurations
package main
import (
"context"
"fmt"
"github.com/gitpod-io/gitpod-sdk-go"
"github.com/gitpod-io/gitpod-sdk-go/option"
)
func main() {
client := gitpod.NewClient(
option.WithBearerToken("My Bearer Token"),
)
page, err := client.Organizations.ScimConfigurations.List(context.TODO(), gitpod.OrganizationScimConfigurationListParams{
Pagination: gitpod.F(gitpod.OrganizationScimConfigurationListParamsPagination{
PageSize: gitpod.F(int64(20)),
}),
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}
{
"pagination": {
"nextToken": "nextToken"
},
"scimConfigurations": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"createdAt": "2019-12-27T18:11:19.117Z",
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"tokenExpiresAt": "2019-12-27T18:11:19.117Z",
"updatedAt": "2019-12-27T18:11:19.117Z",
"enabled": true,
"name": "name",
"ssoConfigurationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
]
}Returns Examples
{
"pagination": {
"nextToken": "nextToken"
},
"scimConfigurations": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"createdAt": "2019-12-27T18:11:19.117Z",
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"tokenExpiresAt": "2019-12-27T18:11:19.117Z",
"updatedAt": "2019-12-27T18:11:19.117Z",
"enabled": true,
"name": "name",
"ssoConfigurationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
]
}