Users who register as Turtles (those who want to help people in need) in our Blazor web app are automatically created as Azure AD Users and automatically assigned a Dynamics license, using MS Graph API. The only thing missing for Turtles to be able to log in to the Dynamics mobile app is getting a security role in Dynamics.
We would have programatically assigned a Dynamics security role right away, but there’s a problem: users aren’t immediately synced from Azure AD to Dynamics – it can take several minutes.
As a workaround, a Dynamics plug-in listens to user creations and automatically adds the correct security role when new users are added to Dynamics.
When the plugin has done its work, users will be able to log in to the Dynamics app for phones.