<gh_stars>1-10
"""
Authors: 
    - <NAME>
"""

import requests

graph_url = 'https://graph.microsoft.com/v1.0'


def get_user(token):
    # Send GET to /me
    user = requests.get('{0}/me'.format(graph_url),
                        headers={'Authorization': 'Bearer {0}'.format(token)},
                        params={'$select': 'displayName,mail,mailboxSettings,userPrincipalName'})
    return user.json()

"""
Authors: 
    - <NAME>
"""

import requests

graph_url = 'https://graph.microsoft.com/v1.0'


def get_user(token):
    # Send GET to /me
    user = requests.get('{0}/me'.format(graph_url),
                        headers={'Authorization': 'Bearer {0}'.format(token)},
                        params={'$select': 'displayName,mail,mailboxSettings,userPrincipalName'})
    return user.json()
Authors:      - <NAME> # Send GET to /me