Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
we require to redirect the users of other country/region for one of the pages in sharepoint online site.
how can we check we the logged in user belong to specific country/region?
what would be the best approach?
Put the user's region in a user profile property. Do a GET request for the property and redirect as needed.
Alternate approach, put the users in an AD group. Put the AD group in a SharePoint group. Check if the current user is in that group, and do the redirection if true.
Required, but never shown