Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
i've built a Web Form with Master Page that authenticates with Azure AD. It works great and all the users in the organiztion can login and access the site.

However, I'd like to restrict all or parts of the site based on the security group they are a member of in AD.

i can't figure out how to do this:

i've tried My.User.IsInRole("group1") but it doesn't work

any suggestions?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900