# Resource server is giving error 403

**URL:** <https://devforum.okta.com/t/resource-server-is-giving-error-403/14855>\
**Category:** Questions\
**Created:** [June 22, 2021, 3:14pm UTC](https://devforum.okta.com/t/resource-server-is-giving-error-403/14855 "2021-06-22T15:14:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nagarjuna0901](https://avatars.discourse-cdn.com/v4/letter/n/a3d4f5/32.png) [@nagarjuna0901](https://devforum.okta.com/u/nagarjuna0901)\
**Post date:** [June 22, 2021, 3:14pm UTC](https://devforum.okta.com/t/resource-server-is-giving-error-403/14855/1 "2021-06-22T15:14:20Z")

</div>

I’ve one Okta oauth client application and another oauth resource application, Once after authenticate with Okta, I’m getting authorities as Admin,Everyone…

My resource server has condition that API is opened for only Admin authority. WIthout @preauthorize at resource server everything is working fine, when I’ve this it is giving me 403 after having the authority.

I even tried to keep the same condition at client application and the authorities are working fine.

What went worng, Please suggest ?

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 8, 2024, 6:33pm UTC](https://devforum.okta.com/t/resource-server-is-giving-error-403/14855/2 "2024-02-08T18:33:32Z")

</div>

Closed on February 8, 2024, 6:33pm UTC


