You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,7 @@ What follows is kind of a wiki...
64
64
-[Account Class and Modularity](#account)
65
65
-[MailBox](#mailbox)
66
66
-[AddressBook](#addressbook)
67
+
-[Directory and Users](#directory-and-users)
67
68
-[Calendar](#calendar)
68
69
-[OneDrive](#onedrive)
69
70
-[Excel](#excel)
@@ -887,6 +888,21 @@ new_contact.delete() # Bonus: deteled from the cloud
887
888
```
888
889
889
890
891
+
## Directory and Users
892
+
The Directory object can retrieve users.
893
+
894
+
A User instance contains by default the [basic properties of the user](https://docs.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http#optional-query-parameters).
895
+
If you want to include more, you will have to select the desired properties manually.
896
+
897
+
Check [The Global Address List](#the-global-address-list) for further information.
898
+
899
+
```python
900
+
directory= account.directory()
901
+
for user in directory.get_users():
902
+
print(user)
903
+
```
904
+
905
+
890
906
## Calendar
891
907
The calendar and events functionality is group in a `Schedule`object.
0 commit comments