{
  "opencollection": "1.0.0",
  "info": {
    "name": "Downloads About Access Control (Permissions) API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Access Control (Permissions)",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List permissions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.tenable.com/downloads/api/v2/api/v3/access-control/permissions"
          },
          "docs": "Lists all permissions defined for your Tenable Vulnerability Management container.<div class=\"perms-callout\">Requires the Administrator [64] user role. See [Roles](doc:roles).</div>"
        },
        {
          "info": {
            "name": "Create permission",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://www.tenable.com/downloads/api/v2/api/v3/access-control/permissions",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a permission that grants the specified actions to the specified subjects on the specified objects.\n\n**Note:** The `AllAssets` object type is only compatible with `CanView`, `CanScan`, or empty actions. The `Tag` and `AllTags` object types are only compatible with `CanUse` and `CanEdit` actions.<div class=\"perms-callout\">Requires the Administrator [64] user role. See [Roles](doc:roles).</div>"
        },
        {
          "info": {
            "name": "Get permission details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.tenable.com/downloads/api/v2/api/v3/access-control/permissions/:permission_uuid",
            "params": [
              {
                "name": "permission_uuid",
                "value": "",
                "type": "path",
                "description": "Specifies the unique identifier (UUID) of the permission."
              }
            ]
          },
          "docs": "Retrieves the details for the specified permission.<div class=\"perms-callout\">Requires the Administrator [64] user role. See [Roles](doc:roles).</div>"
        },
        {
          "info": {
            "name": "Update permission",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://www.tenable.com/downloads/api/v2/api/v3/access-control/permissions/:permission_uuid",
            "params": [
              {
                "name": "permission_uuid",
                "value": "",
                "type": "path",
                "description": "Specifies the unique identifier (UUID) of the permission to update."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the specified permission.\n\n**Note:** This method overwrites the existing permission data. You must include all fields in the request body, not just the fields you want to change.<div class=\"perms-callout\">Requires the Administrator [64] user role. See [Roles](doc:roles).</div>"
        },
        {
          "info": {
            "name": "Delete permission",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://www.tenable.com/downloads/api/v2/api/v3/access-control/permissions/:permission_uuid",
            "params": [
              {
                "name": "permission_uuid",
                "value": "",
                "type": "path",
                "description": "Specifies the unique identifier (UUID) of the permission to delete."
              }
            ]
          },
          "docs": "Deletes the specified permission.<div class=\"perms-callout\">Requires the Administrator [64] user role. See [Roles](doc:roles).</div>"
        },
        {
          "info": {
            "name": "List user permissions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.tenable.com/downloads/api/v2/api/v3/access-control/permissions/users/:user_uuid",
            "params": [
              {
                "name": "user_uuid",
                "value": "",
                "type": "path",
                "description": "Specifies the unique identifier (UUID) of the user to list permissions for."
              }
            ]
          },
          "docs": "Returns the permissions for the specified user.\n\n**Note:** In the response, the `permissions_granted` array lists all permissions granted to the specified user, and the `permissions_available` array lists all permissions available but not applied to the specified user.<div class=\"perms-callout\">Requires the Administrator [64] user role. See [Roles](doc:roles).</div>"
        },
        {
          "info": {
            "name": "List user group permissions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.tenable.com/downloads/api/v2/api/v3/access-control/permissions/user-groups/:user_group_uuid",
            "params": [
              {
                "name": "user_group_uuid",
                "value": "",
                "type": "path",
                "description": "Specifies the unique identifier (UUID) of the user group to list permissions for."
              }
            ]
          },
          "docs": "Returns the permissions for the specified user group.\n\n**Note:** In the response, the `permissions_granted` array lists all permissions granted to the specified user group, and the `permissions_available` array lists all permissions available but not applied to the specified user group.<div class=\"perms-callout\">Requires the Administrator [64] user role. See [Roles](doc:roles).</div>"
        },
        {
          "info": {
            "name": "Get current user permissions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.tenable.com/downloads/api/v2/api/v3/access-control/permissions/users/me"
          },
          "docs": "Returns the permissions assigned to the current user.\n\n**Note:** The subjects in the response are redacted to return only the current user and the user groups the current user belongs to. The `permissions_available` array is always empty for this endpoint.<div class=\"perms-callout\">Requires the Basic [16] user role. See [Roles](doc:roles).</div>"
        }
      ]
    }
  ],
  "bundled": true
}