• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# PermissionDef
2
3The **PermissionDef** module provides permission details defined in the configuration file. The information can be obtained using [bundleManager.getPermissionDef](js-apis-bundleManager.md).
4
5> **NOTE**
6>
7> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8
9## **PermissionDef**
10
11**System capability**: SystemCapability.BundleManager.BundleFramework.Core
12
13**System API**: This is a system API and cannot be called by third-party applications.
14
15| Name          | Type  | Readable| Writable| Description          |
16| -------------- | ------ | ---- | ---- | -------------- |
17| permissionName | string | Yes  | No  | Name of the permission.  |
18| grantMode      | number | Yes  | No  | Grant mode of the permission.|
19| labelId        | number | Yes  | No  | ID of the permission label.  |
20| descriptionId  | number | Yes  | No  | ID of the permission description.  |
21