# Temporal-web to show only particular namespace workflows based on user authentication

**URL:** <https://community.temporal.io/t/temporal-web-to-show-only-particular-namespace-workflows-based-on-user-authentication/3190>\
**Category:** Community Support\
**Tags:** namespace, web-ui\
**Created:** [October 18, 2021, 11:04am UTC](https://community.temporal.io/t/temporal-web-to-show-only-particular-namespace-workflows-based-on-user-authentication/3190 "2021-10-18T11:04:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaffarsadik](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/jaffarsadik/32/991_2.png) [@jaffarsadik](https://community.temporal.io/u/jaffarsadik)\
**Post date:** [October 18, 2021, 11:04am UTC](https://community.temporal.io/t/temporal-web-to-show-only-particular-namespace-workflows-based-on-user-authentication/3190/1 "2021-10-18T11:04:07Z")

</div>

Hi,

I would like to show the namespace workflows based on user role in temporal-web, how can be achieved & is there any pseudo code?

Roles & namespaces

- role1 : role1-ns1
- role2 : role2-ns2

---

<div class="post-metadata">

**Author:** ![SergeyBykov](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/sergeybykov/32/335_2.png) [@SergeyBykov](https://community.temporal.io/u/SergeyBykov)\
**Post date:** [October 19, 2021, 4:48pm UTC](https://community.temporal.io/t/temporal-web-to-show-only-particular-namespace-workflows-based-on-user-authentication/3190/2 "2021-10-19T16:48:40Z")

</div>

How do you authenticate users? If you use JWT tokens, then you can see to which namespace they should and should not access. [This section](https://docs.temporal.io/docs/server/security/#authorization) of the docs shows how to authorize users on the server.  
Or perhaps you already looked at this and have a different problem?

---

<div class="post-metadata">

**Author:** ![SergeyBykov](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/sergeybykov/32/335_2.png) [@SergeyBykov](https://community.temporal.io/u/SergeyBykov)\
**Post date:** [October 20, 2021, 3:52pm UTC](https://community.temporal.io/t/temporal-web-to-show-only-particular-namespace-workflows-based-on-user-authentication/3190/4 "2021-10-20T15:52:25Z")

</div>

Have you found [defaultAuthorizer](https://github.com/temporalio/temporal/blob/077d39c775d589427256f5c94e2142e21deb2d81/common/authorization/default_authorizer.go#L47) and [defaultJWTClaimMapper](https://github.com/temporalio/temporal/blob/077d39c775d589427256f5c94e2142e21deb2d81/common/authorization/default_jwt_claim_mapper.go#L66) already?

---

<div class="post-metadata">

**Author:** ![jaffarsadik](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/jaffarsadik/32/991_2.png) [@jaffarsadik](https://community.temporal.io/u/jaffarsadik)\
**Post date:** [October 21, 2021, 7:12pm UTC](https://community.temporal.io/t/temporal-web-to-show-only-particular-namespace-workflows-based-on-user-authentication/3190/5 "2021-10-21T19:12:38Z")

</div>

From the java standalone client connect to temporal server how to set or pass the jwt token?  
To start the workflow request? Any pseudo code?
