# pms\_interface.h - [Overview](#section762553512165628) - [Summary](#section775866580165628) - [Functions](#func-members) ## **Overview** **Related Modules:** [PMS](PMS.md) **Description:** Declares interfaces for managing permissions. The interfaces can be used to authenticate native APIs, query, grant, and revoke permissions, and grant runtime permissions. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Functions

Function

Description

CheckPermission (int uid, const char *permissionName)

int

Checks whether the caller (generally a third-party application) has a specified permission of a system service API.

CheckSelfPermission (const char *permissionName)

int

Checks whether the caller (generally a third-party application) has a specified permission of a system service API.

QueryPermission (const char *identifier, PermissionSaved **permissions, int *permNum)

int

Queries all permissions requested by the application and checks whether these permissions are granted.

GrantPermission (const char *identifier, const char *permName)

int

Grants a specified permission to the application.

RevokePermission (const char *identifier, const char *permName)

int

Revokes a specified permission from the application.

GrantRuntimePermission (int uid, const char *permissionName)

int

Grants a specified runtime permission to an application.