# Dynamically change users exclusive group

## <span class="mw-headline" id="bkmrk-what-it-does-1">What it does</span>

<span class="mw-headline">Gives the user a list of exclusive groups defined in the application. The user can select one and will have their exclusive group set to that value untill they sign out.</span>

<span class="mw-headline">Also supports changing the users exclusive group, if the already have one.</span>

<span class="mw-headline">Does not support advanced security with multiple exclusive groups.</span>

## <span class="mw-headline" id="bkmrk-first-setup-1">First setup</span>

<span class="mw-headline">Enable the policy [securityExclusiveGroupSet](https://docs.tsnocode.com/books/policy-reference/page/security).</span>

<span class="mw-headline">If the option to change groups is required, enable the policy [securityExclusiveGroupChange](https://docs.tsnocode.com/books/policy-reference/page/security).</span>

## <span class="mw-headline" id="bkmrk-how-to-invoke-1">How to invoke</span>

<span class="mw-headline">Add a button that links to this codeunit</span>

```
main?command=dk.p2e.blanket.codeunit.common.PageSetExclusiveGroup
```

### <span class="mw-headline">Options</span>

<span class="mw-headline">None</span>

## <span class="mw-headline" id="bkmrk-configuration-1">Configuration</span>

<span class="mw-headline">None</span>

## <span class="mw-headline" id="bkmrk-developer-info-1">Developer info</span>

- <span class="mw-headline">Type: [CodeunitPagecontent](https://docs.tsnocode.com/books/codeunit-reference/chapter/pagecontent)</span>
- <span class="mw-headline">Security: Session</span>
- <span class="mw-headline">Classpath: dk.p2e.blanket.codeunit.common.PageSetExclusiveGroup</span>