/r/{repoId}/restrictionset/{id}/assignments

GET
https://sample-api.d-velop.cloud
Retrieving a list of all the restriction set assignments
In the response, you will receive an array of restriction set assignments.
Parameters
repoId/string/required
The unique ID of the repository.
id/string/required
The unique ID of the restriction set.
Responses
200
The restriction set assignments were determined successfully.
Content
Media type: application/json
{
  "assignments": {
    "type": "array",
    "items": {
      "required": [
        "type",
        "values"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of a group. Required if the type has the value \"GROUP\"",
          "example": "00000000-0000-0000-0000-000000000000"
        },
        "type": {
          "type": "string",
          "description": "The type of the object that is being assigned.\r\n- GROUP: The right is assigned to a group.\r\n- NO_ASSIGNMENT: The right is assigned to all groups.",
          "example": "GROUP | NO_ASSIGNMENT"
        },
        "values": {
          "minLength": 0,
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Array of values. Attention: An empty array allows all values.\r\n\r\nYou can define values for each assignment. These values serve as a filter for the assigned property of a given permission. If the value of the property is contained in this list of values, the user receives the configured authorization.",
          "example": [
            "Value A",
            "Value B",
            "Value C"
          ]
        }
      },
      "additionalProperties": false,
      "description": ""
    },
    "nullable": true
  }
}
Media type: application/hal+json
{
  "assignments": {
    "type": "array",
    "items": {
      "required": [
        "type",
        "values"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of a group. Required if the type has the value \"GROUP\"",
          "example": "00000000-0000-0000-0000-000000000000"
        },
        "type": {
          "type": "string",
          "description": "The type of the object that is being assigned.\r\n- GROUP: The right is assigned to a group.\r\n- NO_ASSIGNMENT: The right is assigned to all groups.",
          "example": "GROUP | NO_ASSIGNMENT"
        },
        "values": {
          "minLength": 0,
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Array of values. Attention: An empty array allows all values.\r\n\r\nYou can define values for each assignment. These values serve as a filter for the assigned property of a given permission. If the value of the property is contained in this list of values, the user receives the configured authorization.",
          "example": [
            "Value A",
            "Value B",
            "Value C"
          ]
        }
      },
      "additionalProperties": false,
      "description": ""
    },
    "nullable": true
  }
}
Show operation

Language

const options = {method: 'GET', headers: {accept: 'application/json'}};

fetch('https://example.com/dmsconfig/r/REPOID/restrictionset/ID/assignments', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));