Simple Static Web Apps Authentification for an Azure Active Directory Group

Tibor Udvari 11 Reputation points
2020-09-24T10:03:21.26+00:00

I am creating a static site with Gatsby, I want to have a certain part of it only accessible to a group in my Azure Active Directory.
I want to use Static Web Apps (Preview) to do this in the simplest way possible.

I already managed to restrict access with the routes.json file to certain user roles (as defined in the Azure portal), but I don't want to manually add everyone in my Active Directory Group to this role one by one.

Can I add an entire AAD group to a role? Is this possible now or is it on the roadmap?

Example use case:
Imagine the use case of a paywall blog, but a company paid for access for all of it's employees. I still want the benefits of static rendering so I want the server to handle access in the background.

If it is not possible what workarounds would be possible today.
I do not want to rewrite my static web app to render certain articles dynamically.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,915 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,565 questions
{count} votes

2 answers

Sort by: Most helpful
  1. 2020-09-28T21:04:22.04+00:00

    @Tibor Udvari I'm reaching within the product team and will come back to you.

    3 people found this answer helpful.

  2. 2022-10-27T15:29:25.98+00:00

    Hello everybody and thanks for reaching out and waiting for an update.

    Support for Azure Active Directory Groups in Azure Simple Static Web Apps Authentication as built-in criteria for authorization has not been planned.
    However, and as pointed out by @Albert-Moore, Stephen , (custom) Role management based on Azure Function is in preview and allow roles to be managed/sourced in myriad of ways including Azure AD Group membership.

    You can let the product team know about your interest in built-in supports for groups posting an idea in the Azure Feedback Forum.

    Also, you can know get the latest updates on Static Web Apps features at Azure Updates.

    Let us know if you need additional assistance. If the answer was helpful, please accept it and complete the quality survey so that others can find a solution.

    0 comments No comments