<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
System Status
Announcements
Announcements
Search
Search
Select Language
0D54z000077fpynCAAOkta Classic EngineAuthenticationAnswered2021-08-21T13:49:43.000Z2021-08-17T21:57:20.000Z2021-08-21T13:49:43.000Z

RyanN.05618 (Customer) asked a question.

Limit SPA page access based on user group

Forgive me if this has been asked already but i cannot seem to find what im looking for.

 

I have created a React SPA that contains different pages; Home, Profile and Admin.

I've implemented a secure route to Profile and Admin, where everyone is able to access the profile page where it pulls the current user Info and displays it.

What i'm trying to do is block access to the admin page unless they're assigned as admins in the directory. So once authenticated, if they click on the Admin page they'll see some sort of access denied message if they're not admins, and if they are then they'll see a welcome admin message.

 

What do i need to do on OKTAS side to achieve this ? any documentation or help is greatly appreciated.

 

Thank you


This question is closed.
Loading
Limit SPA page access based on user group
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply