# Get user's user group

**URL:** <https://community.viktor.ai/t/get-users-user-group/1438>\
**Category:** Need help? Ask here!\
**Created:** [17 November 2023 14:06 UTC](https://community.viktor.ai/t/get-users-user-group/1438 "2023-11-17T14:06:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fzhou](https://community.viktor.ai/letter_avatar_proxy/v4/letter/f/779978/32.png) [@fzhou](https://community.viktor.ai/u/fzhou)\
**Post date:** [17 November 2023 14:06 UTC](https://community.viktor.ai/t/get-users-user-group/1438/1 "2023-11-17T14:06:48Z")

</div>

Hi,  
I would like to set some input parameters visible only for certain user groups.  
In order to do that, is there a way to get the user group (similarly to the user full name for example: API().get\_current\_user().full\_name)?  
If not, do you have any workaround to do this?  
Thank you,  
Fulei

---

<div class="post-metadata">

**Author:** ![matthijs](https://community.viktor.ai/user_avatar/community.viktor.ai/matthijs/32/34_2.png) [@matthijs](https://community.viktor.ai/u/matthijs)\
**Post date:** [17 November 2023 16:54 UTC](https://community.viktor.ai/t/get-users-user-group/1438/2 "2023-11-17T16:54:16Z")

</div>

Hi @fzhou,

It’s currently not possible to differentiate field visibilities based on a usergroup.

In order to help formulating a potential workaround: can you explain the reason for this desired functionality? In other words: what are you trying to achieve?

kind regards,  
Matthijs

---

<div class="post-metadata">

**Author:** ![fzhou](https://community.viktor.ai/letter_avatar_proxy/v4/letter/f/779978/32.png) [@fzhou](https://community.viktor.ai/u/fzhou)\
**Post date:** [20 November 2023 09:42 UTC](https://community.viktor.ai/t/get-users-user-group/1438/3 "2023-11-20T09:42:19Z")

</div>

Hi Matthijs,

Thank you for the response.

I want only allow some advanced users to download an Excel file. For that I was planning to have the download button hidden for standard users.

Best regards,  
Fulei

---

<div class="post-metadata">

**Author:** ![matthijs](https://community.viktor.ai/user_avatar/community.viktor.ai/matthijs/32/34_2.png) [@matthijs](https://community.viktor.ai/u/matthijs)\
**Post date:** [20 November 2023 09:56 UTC](https://community.viktor.ai/t/get-users-user-group/1438/4 "2023-11-20T09:56:58Z")

</div>

If you are limiting this because of convenience (and not because they are not allowed to), you could consider a “advanced settings” `BooleanField`. I don’t see a quick workaround if other users are not allowed to download this unfortunately.

kind regards,  
Matthijs
