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


## Description

> Macro (excerpt)
> 
> Retrieves a permissions by its id for the provided scheme id.

Retrieves a permissions by its id for the provided scheme id.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admGetPermissionGrant(schemeId, grantId) | **Package** | adm |
| **Alias** |  | **Pkg Usage** | permissionGrant(schemeId, grantId) |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| schemeId | integer | Yes | The id of the scheme for which the grant will be get. |
| grantId | integer | Yes | The id grant that will be get. |

## Return Type

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

Returns a permission grant structures.

## Example

```javascript
JPermissionGrant permGrant = admGetPermissionGrant(10012, 11344);
return permGrant;}
```

## See also

> Macro (contentbylabel)