Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Answered

is it possible to use AD Groups to manage security in power pages

(0) ShareShare
ReportReport
Posted on by 90

AD has security groups for each department in the organization.
I would like to use these security groups to grant access to specific sections of the power pages site, e.g. the HR AD security group gets access to the HR pages on the power page site.

 

Is it possible to use AD Groups to manage security in power pages?

Categories:
  • Juanse Profile Picture
    12 on at
    is it possible to use AD Groups to manage security in power pages
     
    I am currently working on a power pages site. My idea is also to control the access to the pages, buttons, etc, through the Security Group to which the user belongs in Entra ID.
    Is there a way to solve this today?  I tried to get the group claims from the App Registration from power pages but was unsuccessful.

    Thanks!
  • Lucas001 Profile Picture
    2,143 Super User 2025 Season 1 on at
    Re: is it possible to use AD Groups to manage security in power pages

    Hi @winston_smyth, @Fubar,

     

    my initial comment actually seems false, sorry for that.

    Another thing what could work but depends on one thing. Are all your users logged in?

    I believe so as you will manage access for your accounts. When you have the contact details you can easily give those records the webrole.

     

    What could be a bit more intuitive would be to create a AD security group, create a team and assign that security role to the team as well as a business unit, after that you could use a flow to listen to the contact table. Once a user is created you can look for the business unit and assign the webrole which is in combination for that business unit. 

     

  • Fubar Profile Picture
    7,896 Super User 2025 Season 1 on at
    Re: is it possible to use AD Groups to manage security in power pages

    Just be aware Web Roles can only be assigned to Contact records directly (there isn't a Teams concept), except for one (and only one) that is marked as Authenticated Users which all contacts will inherit the privileges off it

  • winston_smyth Profile Picture
    90 on at
    Re: is it possible to use AD Groups to manage security in power pages

    thanks @Fubar although this is not a solution, it points in the direction of one.
    I need to find a way to get security group membership into the dataverse and i can then link that to a webrole.

  • winston_smyth Profile Picture
    90 on at
    Re: is it possible to use AD Groups to manage security in power pages

    Thanks for the reply @Lucas001 
    It doesnt look like this is correct however, but happy to be corrected.
    Mentioning this so it doesnt lead anyone down a dead end.
    An AD group can be assigned to a Team but the team or AD group cannot be assigned to a webrole, and webpage permissions are governed by webroles.


  • Verified answer
    Fubar Profile Picture
    7,896 Super User 2025 Season 1 on at
    Re: is it possible to use AD Groups to manage security in power pages

    Not really.  Your portal users are Contact records not User records. 

    By Default the Contact record is created when your user registers for the first time.  Also apart from when you attach a Security Group (can only be one) to the dataverse environment with the the AD Groups the user does not appear as a User in Dataverse until they have actually signed into Dataverse (your portal user does not directly sign into Dataverse, they signin to the Identity Provider and the Portal 'trusts' the Identity Provider)..

  • Lucas001 Profile Picture
    2,143 Super User 2025 Season 1 on at
    Re: is it possible to use AD Groups to manage security in power pages

    Hi @winston_smyth ,

     

    as far as I know you can use the AD Security Group and assign a team or a webrole (not possible after testing) to it. Those things can than be used inside your PowerPage to restrict access or grant access.

     

    If you don't want to use AD Roles you can also asssing webroles to the user once they are logged in and manage the access like that.

     

    One thing you should keep in mind is, that all pages will still be visible if you don't use subpages and js to hhide or unhide buttons depending on the assigned roles.

     



    --------------------------------------------------------------------------------------

    Hope that helps.

    If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Pages - General Discussions

#1
WarrenBelz Profile Picture

WarrenBelz 9 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 7 Super User 2025 Season 1

#3
Rondel Profile Picture

Rondel 6

Overall leaderboard