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


## Description

> Macro (excerpt)
> 
> Retrieves a list of permissions for the provided scheme id.

Retrieves a list of permissions for the provided scheme id.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admGetAllPermissionGrants(schemeId) | **Package** | adm |
| **Alias** |  | **Pkg Usage** | allPermissionGrants(schemeId) |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| schemeId | integer | Yes | The id for which the grants will be get. |

## Return Type

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

Returns an array of permission grant structures.

## Example

```javascript
JPermissionGrant [] allPermGrants = admGetAllPermissionGrants(10012);
return allPermGrants;}
```

## See also

> Macro (contentbylabel)