# EuiPermissionService

**Type:** injectable



Service for managing user permissions within the application.
This class extends `EuiService` and is responsible for handling user rights and permissions.
It provides methods to initialize the service with user rights, check specific rights and permissions,
and subscribe to changes in the user rights state.

See EuiService

```html
// Example of using the EuiPermissionService in an application
const permissionService = new EuiPermissionService();
permissionService.init([{ id: 'ADMIN', permissions: ['CREATE', 'READ', 'UPDATE', 'DELETE'] }]);
if (permissionService.checkRight('ADMIN')) {
  console.log('User has ADMIN rights');
}
```
