You can assign users to app roles by navigating to your app registration's corresponding enterprise application settings in Microsoft Entra ID. By default, any user in any domain can authenticate to the application. You can also do the following:
Hide Jamf Connect from users. This limits a user's interaction with the application to the login window of a computer. This can be done in the "Properties" section of the application settings.
Grant admin consent for your organization. This can be done in the "Permissions" section of the application settings.
After configuring app roles in Microsoft Entra ID, your users or groups of users must be directly assigned to the application. If they are not assigned, they may not receive a "role" attribute for administrator rights.
Make sure go to the app registration's Authentication settings and re-enable the set the Allow public client flows switch to Yes.