Is your feature request related to a problem? Please describe.
Frappe/ERPNext allows for default role at signup, however it becomes quite cumbersome to manage the roles and permissions where one prefers to use an external authentication provider such as Microsoft Office 365 as a central authentication provider for all applications (where Frappe/ERPNext is one of them).
Describe the solution you'd like
Include a feature for the Social Login Office 365 which allows the roles and groups defined in the Microsoft OpenID payload claims to be mapped to the roles in ERPNext. The solution should be similar to LDAP group mappings (see image below or https://docs.erpnext.com/docs/v12/user/manual/en/erpnext_integration/ldap-integration).
Is your feature request related to a problem? Please describe. Frappe/ERPNext allows for default role at signup, however it becomes quite cumbersome to manage the roles and permissions where one prefers to use an external authentication provider such as Microsoft Office 365 as a central authentication provider for all applications (where Frappe/ERPNext is one of them).
Describe the solution you'd like Include a feature for the Social Login Office 365 which allows the roles and groups defined in the Microsoft OpenID payload claims to be mapped to the roles in ERPNext. The solution should be similar to LDAP group mappings (see image below or https://docs.erpnext.com/docs/v12/user/manual/en/erpnext_integration/ldap-integration).
Additional context![ldap_group_mappingseff728](https://user-images.githubusercontent.com/46285948/140823839-c5f5a620-b9b1-4dc0-8ba5-d2b2d59cf675.png)