You can explore the graph widget for this.
https://marketplace.mendix.com/link/component/117007
Alternatively, you can explore the Graph API for working with contacts.
https://learn.microsoft.com/en-us/graph/api/resources/contact?view=graph-rest-1.0