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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.