You can hit the Graph API users/ endpoint (https://graph.microsoft.com/v1.0/users/) with the proper Bearer token for getting the basic details of other users.
You can try that out in the Graph Explorer as well - https://developer.microsoft.com/en-us/graph/graph-explorer#