๐ฉSchemas
Get all schemas
GET /scim/directory/{directoryId}/Schemas
Get all SCIM features metadata. Filtering, pagination, and sorting are not supported.
package main
import (
"context"
"github.com/ctreminiom/go-atlassian/admin"
"log"
"os"
)
func main() {
//ATLASSIAN_ADMIN_TOKEN
var scimApiKey = os.Getenv("ATLASSIAN_SCIM_API_KEY")
cloudAdmin, err := admin.New(nil)
if err != nil {
log.Fatal(err)
}
cloudAdmin.Auth.SetBearerToken(scimApiKey)
cloudAdmin.Auth.SetUserAgent("curl/7.54.0")
var directoryID = "bcdde508-ee40-4df2-89cc-d3f6292c5971"
schemas, response, err := cloudAdmin.SCIM.Scheme.Gets(context.Background(), directoryID)
if err != nil {
if response != nil {
log.Println("Response HTTP Response", string(response.BodyAsBytes))
}
log.Fatal(err)
}
log.Println("Response HTTP Code", response.StatusCode)
log.Println("HTTP Endpoint Used", response.Endpoint)
log.Println(schemas)
}Get user schemas
GET /scim/directory/{directoryId}/Schemas/urn:ietf:params:scim:schemas:core:2.0:User
Get the user schemas from the SCIM provider. Filtering, pagination and sorting are not supported.
Get group schemas
GET /scim/directory/{directoryId}/Schemas/urn:ietf:params:scim:schemas:core:2.0:Group
Get the group schemas from the SCIM provider. Filtering, pagination and sorting are not supported.
Get user enterprise extension schemas
GET /scim/directory/{directoryId}/Schemas/urn:ietf:params:scim:schemas:extension:enterprise:2.0:User
Get the user enterprise extension schemas from the SCIM provider. Filtering, pagination and sorting are not supported.
Get feature metadata
GET /scim/directory/{directoryId}/ServiceProviderConfig
Get metadata about the supported SCIM features. This is a service provider configuration endpoint providing supported SCIM features. Filtering, pagination, and sorting are not supported.
Last updated
Was this helpful?
