Пример #1
0
 def test4_get_user_props(self):
     target_user = self.my_client.web.ensure_user(
         test_user_principal_name).execute_query()
     people_manager = PeopleManager(self.my_client)
     result = people_manager.get_user_profile_properties(
         target_user.login_name).execute_query()
     self.assertIsNotNone(result.value)
Пример #2
0
 def test4_get_user_props(self):
     me = self.my_client.web.currentUser.get().execute_query()
     people_manager = PeopleManager(self.my_client)
     result = people_manager.get_user_profile_properties(me.login_name)
     self.my_client.execute_query()
     self.assertIsNotNone(result.value)