OAuth SSO with Azure AD
We provide a multi tenant service. Each tenant is an account, and each account has multiple users.
We'd like to implement SSO with Azure, so, that based on Azure AD we can allow users to connect to accounts.
We want to base the solution on Azure AD groups.
So, for example:
Any user that has Azure group id "ABC123" can connect to "account A"
Any user that has Azure group id "XYZ123" can connect to "account B"
Will that be secure?
Can a malicious user, somehow inject to his Azure Groups a group id of a different account, and get access to that account this way?
Are Azure Group IDs unique across all azure tenants? Can a user set/modify a group id?