# Multiple clients and different access levels in machine to machine API

**URL:** <https://community.auth0.com/t/multiple-clients-and-different-access-levels-in-machine-to-machine-api/94292>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [November 11, 2022, 6:21pm UTC](https://community.auth0.com/t/multiple-clients-and-different-access-levels-in-machine-to-machine-api/94292 "2022-11-11T18:21:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/maxr/32/33197_2.png) [@maxr](https://community.auth0.com/u/maxr)\
**Post date:** [November 11, 2022, 6:21pm UTC](https://community.auth0.com/t/multiple-clients-and-different-access-levels-in-machine-to-machine-api/94292/1 "2022-11-11T18:21:03Z")

</div>

Hello,

I have one .NET 6 API Application which can be consumed by multiple clients/customers/companies. I have created an API and application in auth0 portal and could successfully test authorized endpoint by obtaining the token and access to authorized endpoint. Now, I have to achieve the following scenario:

Client 1  
Client 2

GetProducts action in Products controller. Client 1 Can access, Client 2 cannot.  
I want to have possibility to define what each client can or cannot do in my API on each controller/action.

How to achieve that?

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 28, 2022, 5:24pm UTC](https://community.auth0.com/t/multiple-clients-and-different-access-levels-in-machine-to-machine-api/94292/3 "2022-11-28T17:24:06Z")

</div>

Hi @maxr,

Welcome to the Auth0 Community!

You can create permissions in your API and grant access on a per-application basis ([client permissions for M2M apps](https://auth0.com/docs/get-started/auth0-overview/create-applications/machine-to-machine-apps)) or you can grant [individual permission to users directly or via roles](https://auth0.com/docs/manage-users/access-control/rbac).

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 30, 2023, 9:36pm UTC](https://community.auth0.com/t/multiple-clients-and-different-access-levels-in-machine-to-machine-api/94292/4 "2023-01-30T21:36:56Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
