# Logical API not returning linked API Permissions with RBAC

**URL:** <https://community.auth0.com/t/logical-api-not-returning-linked-api-permissions-with-rbac/97572>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [January 5, 2023, 6:33pm UTC](https://community.auth0.com/t/logical-api-not-returning-linked-api-permissions-with-rbac/97572 "2023-01-05T18:33:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![phillip.jacowski](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/phillip.jacowski/32/37393_2.png) [@phillip.jacowski](https://community.auth0.com/u/phillip.jacowski)\
**Post date:** [January 5, 2023, 6:33pm UTC](https://community.auth0.com/t/logical-api-not-returning-linked-api-permissions-with-rbac/97572/1 "2023-01-05T18:33:52Z")

</div>

We aren’t seeing permissions returned through the logical API as we’d expect. We have the user assigned a role with permissions from the linked APIs and are requesting them as scopes when we request the token. RBAC and is turned on for each API and so is the “Add Permissions to Token” option. In each linked API, we’ve granted all permissions to the logical API and authorized it to request tokens.

Is there any obvious reason this setup wouldn’t just work? Thanks!

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 6, 2023, 10:09pm UTC](https://community.auth0.com/t/logical-api-not-returning-linked-api-permissions-with-rbac/97572/3 "2023-01-06T22:09:58Z")

</div>

Hi @phillip.jacowski,

Welcome to the Auth0 Community!

I have just tested RBAC with permissions on my tenant and was successfully able to request an access token with the permissions in the token. See below:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/8/b/8bde34efff06cd837686eda7f02e5b61d360337a.png)

Could please clarify if you have included the `audience` parameter in the `/authorize` request? If not, I recommend setting your logical API identifier as the `audience `parameter of the request.

This should request an access token with the permissions array in the data.

Please let me know how it goes for you.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![phillip.jacowski](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/phillip.jacowski/32/37393_2.png) [@phillip.jacowski](https://community.auth0.com/u/phillip.jacowski)\
**Post date:** [January 9, 2023, 4:21pm UTC](https://community.auth0.com/t/logical-api-not-returning-linked-api-permissions-with-rbac/97572/4 "2023-01-09T16:21:50Z")

</div>

we’ve set the proper audience yes. I see that you aren’t requesting any scopes so are the permissions you have returned role based and part of the same logical API? I’d like to request a custom scope for permissions that are provided by a linked API and forwarded through the logical API. Have you seen that work? Thanks

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 9, 2023, 6:22pm UTC](https://community.auth0.com/t/logical-api-not-returning-linked-api-permissions-with-rbac/97572/5 "2023-01-09T18:22:41Z")

</div>

Hi @phillip.jacowski,

Thank you for your response.

> [@phillip.jacowski](#):
>
> are the permissions you have returned role-based and part of the same logical API?

The permissions returned in the Access Token is role based and part of the same API when using RBAC.

> [@phillip.jacowski](#):
>
> I’d like to request a custom scope for permissions that are provided by a linked API and forwarded through the logical API. Have you seen that work? Thanks

Yes, you can make a request with custom scopes and get the permissions of the user for that API.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/1/c/1cb414ff7f72028bdf41adebf3e445f9249f4702.png)

To make a request with custom scopes, you will need to include them in the `scope` parameter of the request.

And to get the permissions in the access token, you will need to enable the RBAC settings of your Logical API. I believe you have done this step already.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/0/3/03351537c188b2830112d0f3f224432cc702a313.png)

Does that help?

Thanks,  
Rueben

---

<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 23, 2023, 6:23pm UTC](https://community.auth0.com/t/logical-api-not-returning-linked-api-permissions-with-rbac/97572/6 "2023-01-23T18:23:41Z")

</div>

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