---
title: "admGetAllPermissionSchemes"
canonical: "https://support.appfire.com/space/PSJC/512852111/admGetAllPermissionSchemes"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Retrieves a list of actions and corresponding permissions for all permission schemes.

Retrieves a list of actions and corresponding permissions for all permission schemes.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admGetAllPermissionSchemes() | **Package** | adm |
| **Alias** |  | **Pkg Usage** | allPermissionSchemes() |

## Return Type

**[JPermissionScheme []](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/435028065)**

Returns an array of key/value pairs representing the values of all permission schemes, where the key is the permission and the value is the associated permission grants for each permission. Each value can be composed of multiple permission grant values separated by "|". Each permission grant is composed of an ID and a type. The type is in parentheses.

## Example

```javascript
JPermissionScheme [] allPermsSchemes = admGetAllPermissionSchemes();
for(JPermissionScheme jps in allPermsSchemes) {
    runnerLog("Id: " + jps.id);
    runnerLog("Name: " + jps.name);
}
```

## See also

> Macro (contentbylabel)