# Perspective User Management - Modes - Access

**URL:** <https://forum.inductiveautomation.com/t/perspective-user-management-modes-access/44942>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 26, 2021, 6:49am UTC](https://forum.inductiveautomation.com/t/perspective-user-management-modes-access/44942 "2021-03-26T06:49:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OscarLucas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/oscarlucas/32/6417_2.png) [@OscarLucas](https://forum.inductiveautomation.com/u/OscarLucas)\
**Post date:** [March 26, 2021, 6:49am UTC](https://forum.inductiveautomation.com/t/perspective-user-management-modes-access/44942/1 "2021-03-26T06:49:30Z")

</div>

Hear all  
I am setting up user management. I am trying to set different view access in role function.  
Edit only if the user does not have a role - “Gestor de usuarios” And I have it Manage users mode.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/f/8fea293bcf4e0ff793f4b8f00fc0afd95401a226.png)  
Also what to hide the admin tole for example and Oscar user. Where should i make the sentence?

```
if user.get('username') == "Oscar":
	return 0
else:
	return 1

if role == "Administrador":
	return 0
else:
	return 1

```

> **[Ignition Exchange](https://inductiveautomation.com/exchange/2128/versions)**
>
> Discover, share, and download community made Ignition resources in collaboration with your organization or the Ignition community.
