The permission API exposes a number of methods to analyze the access rights of a given sueruser. These methods assist extension developers to secure their resources. The ES extension model supports the following permission API'sAPIs:
Table of Contents |
---|
Methods name | Description | Example | ||
---|---|---|---|---|
| This method is used to check specific asset type permissions. |
| ||
| This method is used to check permissions which are independent of the asset type. Example: Verify if you have permission to access the My Items page. |
| ||
| This method is used to check the access permissions of a user for an asset specific page. | hasAssetPagePermission(‘gadget’,‘list’,tenantId,username); | ||
| This method is used to check access permissions of a user for an application specific page. | hasAssetAPIPermission(‘gadget’,‘assets’,tenantId,username); | ||
| This method is used to check access permissions of a user for an asset specific API. | hasAppAPIPermission(‘asset’,tenantId,username); |