younifyd
Menu

Create Clients Authz Resource Server Permission Evaluate By Client Uuid

Create clients authz resource server permission evaluate by client uuid

POST/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/evaluate

Use it in a workflow

  1. Add a step and choose the Keycloak connector.
  2. Pick the Create Clients Authz Resource Server Permission Evaluate By Client Uuid action (under Keycloak Admin REST API).
  3. Fill in the fields below, then reference the result from later steps as {{createClientsAuthzResourceServerPermissionEvaluateByClientUuid.response.data}}.

Request

Path parameters

realmstringrequired

realm name (not id!)

client-uuidstringrequired

id of client (not client-id!)

Request body

Enter the body as JSON in the step's Body field.

contextobject
resourcesarray<object>
_idstring
namestring
urisarray<string>
typestring
scopesarray<object>6 fields
icon_uristring
ownerobject
ownerManagedAccessboolean
displayNamestring
attributesobject
uristring
scopesUmaarray<object>6 fields
resourceTypestring
clientIdstring
userIdstring
roleIdsarray<string>
entitlementsboolean
json
{
  "context": {},
  "resources": [
    {
      "_id": "string",
      "name": "string",
      "uris": [
        "string"
      ],
      "type": "string",
      "scopes": [
        {
          "id": "string",
          "name": "string",
          "iconUri": "string",
          "policies": [
            {
              "type": null,
              "description": null
            }
          ],
          "resources": [
            {}
          ],
          "displayName": "string"
        }
      ],
      "icon_uri": "string",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "string",
      "attributes": {},
      "uri": "string",
      "scopesUma": [
        {
          "id": "string",
          "name": "string",
          "iconUri": "string",
          "policies": [
            {
              "type": null,
              "description": null
            }
          ],
          "resources": [
            {}
          ],
          "displayName": "string"
        }
      ]
    }
  ],
  "resourceType": "string",
  "clientId": "string",
  "userId": "string",
  "roleIds": [
    "string"
  ],
  "entitlements": false
}

Response

Returns 200 with an object. Read it in later steps with {{createClientsAuthzResourceServerPermissionEvaluateByClientUuid.response.data.<field>}}.

resultsarray<object>
resourceobject12 fields
scopesarray<object>6 fields
policiesarray<object>5 fields
statusstring

One ofPERMITDENY

allowedScopesarray<object>6 fields
deniedScopesarray<object>6 fields
entitlementsboolean
statusstring

One ofPERMITDENY

rptobject
jtistring
expinteger (int64)
nbfinteger (int64)
iatinteger (int64)
issstring
substring
typstring
azpstring
otherClaimsobject
noncestring
auth_timeinteger (int64)
sidstring
at_hashstring
c_hashstring
namestring
given_namestring
family_namestring
middle_namestring
nicknamestring
preferred_usernamestring
profilestring
picturestring
websitestring
emailstring
email_verifiedboolean
genderstring
birthdatestring
zoneinfostring
localestring
phone_numberstring
phone_number_verifiedboolean
addressobject6 fields
updated_atinteger (int64)
claims_localesstring
acrstring
s_hashstring
trusted-certsarray<string>
allowed-originsarray<string>
realm_accessobject2 fields
resource_accessobject
json
{
  "results": [
    {
      "resource": {
        "_id": "string",
        "name": "string",
        "uris": [
          "string"
        ],
        "type": "string",
        "scopes": [
          {
            "id": "string",
            "name": "string",
            "iconUri": "string",
            "policies": [
              null
            ],
            "resources": [
              null
            ],
            "displayName": "string"
          }
        ],
        "icon_uri": "string",
        "owner": {},
        "ownerManagedAccess": false,
        "displayName": "string",
        "attributes": {},
        "uri": "string",
        "scopesUma": [
          {
            "id": "string",
            "name": "string",
            "iconUri": "string",
            "policies": [
              null
            ],
            "resources": [
              null
            ],
            "displayName": "string"
          }
        ]
      },
      "scopes": [
        {
          "id": "string",
          "name": "string",
          "iconUri": "string",
          "policies": [
            {
              "type": null,
              "description": null
            }
          ],
          "resources": [
            {}
          ],
          "displayName": "string"
        }
      ],
      "policies": [
        {
          "policy": {
            "type": null,
            "description": null
          },
          "status": "PERMIT",
          "associatedPolicies": [
            {}
          ],
          "scopes": [
            "string"
          ],
          "resourceType": "string"
        }
      ],
      "status": "PERMIT",
      "allowedScopes": [
        {
          "id": "string",
          "name": "string",
          "iconUri": "string",
          "policies": [
            {
              "type": null,
              "description": null
            }
          ],
          "resources": [
            {}
          ],
          "displayName": "string"
        }
      ],
      "deniedScopes": [
        {
          "id": "string",
          "name": "string",
          "iconUri": "string",
          "policies": [
            {
              "type": null,
              "description": null
            }
          ],
          "resources": [
            {}
          ],
          "displayName": "string"
        }
      ]
    }
  ],
  "entitlements": false,
  "status": "PERMIT",
  "rpt": {
    "jti": "string",
    "exp": 0,
    "nbf": 0,
    "iat": 0,
    "iss": "string",
    "sub": "string",
    "typ": "string",
    "azp": "string",
    "otherClaims": {},
    "nonce": "string",
    "auth_time": 0,
    "sid": "string"
  }
}

Need more? See the Keycloak guide for connection setup and behaviour shared by every action.