MCPcopy Index your code
hub / github.com/O365/python-o365 / get_user_manager

Method get_user_manager

O365/directory.py:331–339  ·  view source on GitHub ↗

Returns a Users' manager by the users id, or user principal name :param str user: the user id or user principal name :return: User for specified email :rtype: User

(self, user, query=None)

Source from the content-addressed store, hash-verified

329 return self._get_user(url, query=query)
330
331 def get_user_manager(self, user, query=None):
332 """ Returns a Users' manager by the users id, or user principal name
333
334 :param str user: the user id or user principal name
335 :return: User for specified email
336 :rtype: User
337 """
338 url = self.build_url(self._endpoints.get('get_user').format(email=user))
339 return self._get_user(url + '/manager', query=query)
340
341 def get_user_direct_reports(self, user, limit=100, *, query=None, order_by=None, batch=None):
342 """ Gets a list of direct reports for the user provided from the active directory

Callers

nothing calls this directly

Calls 3

_get_userMethod · 0.95
build_urlMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected