Validate organization email extension using MS Graph API

In my application, I have a list of users with their organization email-id. As per the requirement, I want to check user's email-id extension is of a valid Microsoft 365 account. For users who passed this check, I want to enable the SSO feature.

Example: If the user email-id is "user@company-domain.com" then I want to check that "@company-domain.com" is registered in MS 365.

I am not able to find any graph API to resolve this issue.

Any help would be appreciated.



Comments

Popular posts from this blog

Spring Elasticsearch Operations

Object oriented programming concepts (OOPs)

Spring Boot and Vaadin : Filtering rows in Vaadin Grid