> For the complete documentation index, see [llms.txt](https://docs.digitalsamba.com/reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalsamba.com/reference/sdk/properties/permissionmanager.md).

# permissionManager

Gives you access to a module for managing permissions.

* **hasPermissions**(permissions: PermissionTypes | PermissionTypes\[], \
  &#x20;                            options: HasPermissionsOptions)

```typescript
enum PermissionTypes {
  broadcast = 'broadcast',
  manageBroadcast = 'manage_broadcast',
  endSession = 'end_session',
  startSession = 'start_session',
  removeParticipant = 'remove_participant',
  screenshare = 'screenshare',
  manageScreenshare = 'manage_screenshare',
  recording = 'recording',
  generalChat = 'general_chat',
  remoteMuting = 'remote_muting',
  askRemoteUnmute = 'ask_remote_unmute',
  raiseHand = 'raise_hand',
  manageRoles = 'manage_roles',
}

HasPermissionsOptions {
  targetRole?: string;
  role?: string;
  userId?: UserId;
}
```

<pre class="language-javascript"><code class="lang-javascript"><strong>const canBroadcast = sambaFrame.permissionManager.hasPermissions('broadcast');
</strong><strong>console.log('Local user can broadcast:', canBroadcast);
</strong></code></pre>
