1e41f4b71Sopenharmony_ci# PermissionDef (System API) 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ciThe **PermissionDef** module provides permission details defined in the configuration file. 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci> **NOTE** 6e41f4b71Sopenharmony_ci> 7e41f4b71Sopenharmony_ci> 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. 8e41f4b71Sopenharmony_ci> 9e41f4b71Sopenharmony_ci> The APIs provided by this module are system APIs. 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ci## **PermissionDef**<sup>(deprecated)<sup> 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci> This API is deprecated since API version 9. You are advised to use [bundleManager-PermissionDef](js-apis-bundleManager-permissionDef-sys.md) instead. 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BundleManager.BundleFramework 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ci**System API**: This is a system API. 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ci| Name | Type | Read-Only| Optional| Description | 20e41f4b71Sopenharmony_ci| -------------- | ------ | ---- | ---- | -------------- | 21e41f4b71Sopenharmony_ci| permissionName | string | No | No | Name of the permission. | 22e41f4b71Sopenharmony_ci| 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.| 23e41f4b71Sopenharmony_ci| labelId | number | No | No | ID of the permission label. | 24e41f4b71Sopenharmony_ci| descriptionId | number | No | No | ID of the permission description. | 25