code: def get_user_id(remote, email):
      
      try:
          url = '{}?usernames={}'.format(GLOBUS_USER_ID_URL, email)
          user_id = get_dict_from_response(remote.get(url))
          return user_id['identities'][0]['id']
      except KeyError:
          # If we got here the response was successful but the data was invalid.
          # It's likely the URL is wrong but possible the API has changed.
          raise OAuthResponseError('Failed to fetch user id, likely server '
                                   'mis-configuration', None, remote)
docs: Get the Globus identity for a users given email.
  
      A Globus ID is a UUID that can uniquely identify a Globus user. See the
      docs here for v2/api/identities
      https://docs.globus.org/api/auth/reference/