# Preview privileges

Warning note**EXPERIMENTAL.**   
  
This API is under development. Do not rely on it. It may change or be removed in future versions.

## Method

POST

## Path

/qrs/[entitytype]/previewprivileges?privilegesFilter={privilegesFilter}

## Description

Preview the user privileges for the specified entity type. Use the optional filter to limit the amount of privileges that are evaluated.

## Body

Object that should be evaluated.

Information noteIf the owner of the object is not supplied in the posted object then the caller will be set as owner when performing the evaluation.

Here is an example of the body for entity type `app`:

```
{
    "name": "Test app"
}
```

## Return value

A preview of the user privileges granted for the given object. For example:

```
[
    "create",
    "read",
    "update",
    "delete",
    "publish",
    "exportdata",
    "offlineaccess",
    "duplicate"
]
```

## Optional parameters

* `{privilegesFilter}`: See [Previewing privileges](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Previewing-Privileges.htm).

## Examples

[](https://help.qlik.com/en-US/sense-developer/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Preview-Privileges.htm)

#### Example 1:

## Path

/qrs/app/previewprivileges?privilegesFilter=3

## Description

Preview privileges for an app with name "Test app". Exclude the owner and provide a `privilegesFilter` that includes Create (1) and Read (2), which equates to a value of 3; see [Previewing privileges](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Previewing-Privileges.htm) for an explanation of the filter values. The evaluation will be performed setting the caller as owner of the app while applying the specified filter.

## Body

```
{
    "name": "Test app"
}
```

## Response

```
[
    "create",
    "read"
]
```

[](https://help.qlik.com/en-US/sense-developer/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Preview-Privileges.htm)

#### Example 2:

## Path

/qrs/app/previewprivileges

## Description

Preview privileges for an app with name "Test app" including the owner.

## Body

```
{
    "name": "Test app",
    "owner": {
        "id": "9f8525f1-cfa5-48fa-a9c4-6f0966e4f063",
        "userId": "sa_repository",
        "userDirectory": "INTERNAL",
        "name": "sa_repository"
    }
}
```

## Response

```
[
    "create"
]
```