1# PermissionDef (System API)
2
3The **PermissionDef** module provides permission details defined in the configuration file.
4
5> **NOTE**
6>
7> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8>
9> The APIs provided by this module are system APIs.
10
11## **PermissionDef**<sup>(deprecated)<sup>
12
13> This API is deprecated since API version 9. You are advised to use [bundleManager-PermissionDef](js-apis-bundleManager-permissionDef-sys.md) instead.
14
15**System capability**: SystemCapability.BundleManager.BundleFramework
16
17**System API**: This is a system API.
18
19| Name          | Type  | Read-Only| Optional| Description          |
20| -------------- | ------ | ---- | ---- | -------------- |
21| permissionName | string | No  | No  | Name of the permission.  |
22| grantMode      | number | No  | No  | Grant mode of the permission. The value **0** means that the system automatically grants the permission after the application installation, and **1** means that the application needs to dynamically request the permission from the user.|
23| labelId        | number | No  | No  | ID of the permission label.  |
24| descriptionId  | number | No  | No  | ID of the permission description.  |
25