davidjrh / dnn.azureadprovider

The DNN Azure Active Directory Provider is an Authentication provider for DNN Platform (formerly DotNetNuke) that uses Azure Active Directory OAuth2 authentication to authenticate users.
MIT License
35 stars 21 forks source link

Can't assign permissions to Azure AD users until they login for the first time #34

Closed davidjrh closed 1 year ago

davidjrh commented 4 years ago

Currently there is no way to give user specific permissions to Azure AD users until they login at least for the first time. While there is a scheduled role sync implemented, there is no scheduled user sync so users automatically populates on DNN.

Would be nice to have a scheduled task that synchronizes Azure AD users in background every X hours by using the MS Graph API with filter support to avoid fully synchronizing huge Azure AD tenants.

JRPonte commented 2 years ago

Hi David, I have your module on a production portal. I'll like to assign an user role to every user that authenticate with AAD. So the user may not have been previously created on DNN, the creation of the new user should be with the first login and automatically assign a role. Is this possible?

JRPonte commented 2 years ago

If the user is not previously created after AAD login the user is sent to the portal homepage with this on the URL: "error=An%20unexpected%20error%20has%20occurred"

davidjrh commented 1 year ago

Solved the implementation of the user sync on v4.2.0