# Permissions

#### ClaimType.Action Permissions <a href="#permissions-claimtype.actionpermissions" id="permissions-claimtype.actionpermissions"></a>

If we want to check if given Identity User have permission for specific TAction or based on this we want to display a certain Accordion Panel or any other WebControl (either Display or Enable) we can follow those steps.

Add desired TAction row for example:

`"ui/portal/profile/employer-write"`

> Note that TAction permission should end with either READ, WRITE etc.

Create Group: `contacts.Group entry` table

> Best by SQL script

Add accounts to this Group, and insert ActionIdentifire with GroupIdentifire in: `contacts.TGroupAction` table

After that you can simply check like this:

`Identity.IsGranted(ClaimType.Action, "ui/portal/profile/employer-write");` to see if current logged in account has permissions or not.

For full example go to: [DEV-3454](https://insite.atlassian.net/browse/DEV-3454)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.shiftiq.com/contributors/getting-started/components/utility-components/security/permissions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
