Skip to content

Update the group profile schema

Request

OAuth 2.0 scope:
  • okta.schemas.manage
Admin roles:
  • API_ACCESS_MANAGEMENT_ADMIN
  • APP_ADMIN
  • ORG_ADMIN
Permissions:
  • okta.apps.manage

Updates the group profile schema. This updates, adds, or removes one or more custom profile properties in a group schema. Currently Okta does not support changing base group profile properties.

Note: You must set properties explicitly to null to remove them from the schema; otherwise, POST is interpreted as a partial update.

The User Types feature does not extend to groups. All groups use the same group schema. Unlike user schema operations, group schema operations all specify default and don't accept a schema ID.

Bodyapplication/json
definitionsobject(GroupSchemaDefinitions)
descriptionstring

Description for the schema

propertiesobject(UserSchemaProperties)

Group object properties

titlestring

User-defined display name for the schema

curl -i -X POST \
  https://subdomain.okta.com/api/v1/meta/schemas/group/default \
  -H 'Content-Type: application/json' \
  -d '{
    "definitions": {
      "custom": {
        "id": "#custom",
        "type": "object",
        "properties": {
          "groupContact": {
            "title": "Group administrative contact",
            "description": "Group administrative contact",
            "type": "string",
            "required": false,
            "minLength": 1,
            "maxLength": 20,
            "permissions": [
              {
                "principal": "SELF",
                "action": "READ_WRITE"
              }
            ]
          }
        },
        "required": []
      }
    }
  }'

Responses

successful operation

Bodyapplication/json
$schemastringread-only

JSON schema version identifier

createdstringread-only

Timestamp when the schema was created

definitionsobject(GroupSchemaDefinitions)
descriptionstring

Description for the schema

idstringread-only

URI of group schema

lastUpdatedstringread-only

Timestamp when the schema was last updated

namestringread-only

Name of the schema

propertiesobject(UserSchemaProperties)

Group object properties

titlestring

User-defined display name for the schema

typestringread-only

Type of root schema

Response
{ "Response with a subset of properties for brevity": { "$ref": "../components.yaml#/components/examples/GroupSchemaResponse" } }