Hi
Azure Static Web Apps uses Azure Active Directory B2B (business-to-business) cooperation to manage inviting users. When a guest accepts an invitation, they should be added as a guest user to your Azure advertising tenant, and then the Rolls (eg reader, contributor, or custom roles) in the static web app.
Recently, either changes may occur as to how Azure Ads Processes Guest User Role In Assignment or Token Promotion Time, which can explain why: Why:
Even after accepting the invitation, users are not showing under the role management. Users also get 403 when logged properly.You have also mentioned that GitHub login works - it makes sense because GitHub certification uses a separate identity provider flow, does not depend on AAD B2B inviting behavior.
Azure Active Directory> Users> Go to new guest users or search for guest user emails under users to confirm that they are added.
Add B2B collaboration users in Azure AD
Even if the user has accepted the invitation, sometimes the role does not bind correctly. Re -reconcile their role manually from the Azure portal:
Go to your Azure Static Web app in the portal. Click on certification> role management.
Click on Add and regularly enter the guest user email.Assign the appropriate role (eg, reader).
Manage roles for users and groups in Azure Static Web Apps
Sometimes this issue can occur with authentic tokens that do not update after changing a role. Ask the user: Log out completely, Clean their browser cash/cookies, Login again
This ensures that they receive a fresh token with the updated role claims.
if you have any further concerns or queries, please feel free to reach out to us.