# QlikCloudGroupMode

This variable controls the groups that are used in Section Access and returned with the GetUserAttr function (`'userGroups'` attribute).

Syntax:

QlikCloudGroupMode

Example:

`SET QlikCloudGroupMode = 1 ;`

`QlikCloudGroupMode`QlikCloudGroupMode values

| Value | Results |
| --- | --- |
| `0` | IdP groups |
| `1` | Custom groups |
| `2` | Both IdP and custom groups |

## Learn more

* [System variables](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)
* [Defining IdP or custom groups for GROUP](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/Security/manage-security-with-section-access.htm#Selectin)
* [GetUserAttr Script and chart function](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/GetUserAttr.htm)