Skip to content

Create Mapping Rule



POST /api/v1/saml/mapping/field/add

Overview

Add a SAML mapping

Body Request Parameters

Parameter Name Type Required Description
ssoUUID string Y SSO configuration UUID
Example: sso_xxx
Nullable: False
Maximum length: 48
sourceField string Y Source field
Example: sourceField
Nullable: False
sourceValue string Y Source field value
Example:
Nullable: False
targetValues array Y Target field values (currently defaults to list of role UUIDs)
Example: readOnly

Additional Parameter Notes

Request Example

curl 'https://openapi.guance.com/api/v1/saml/mapping/field/add' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json;charset=UTF-8' \
  --data-raw '{"ssoUUID":"sso_xxxx32","sourceField":"sd1","sourceValue":"sd1_value1","targetValues":["general"]}' \
  --compressed

Response

{
    "code": 200,
    "content": true,
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-640BC199-EE6B-417C-8F43-A1AAFCBD287B"
} 

Feedback

Is this page helpful? ×