Procedures
Learn how to implement a procedure in a custom book.
Last updated
Was this helpful?
Was this helpful?
@procedure("to get some (users) from *office365*")
async def retrieve_users(self, filter_expression: Optional[FilterExpression] = None) -> List[OfficeUser]:
"""
Retrieves Office 365 users accessible via the Microsoft Graph API.
It requires the following permissions on the application:
User.Read.All, User.ReadWrite.All, Directory.Read.All, Directory.ReadWrite.All
Returns:
A list of Office 365 users.
Example 1:
Retrieve all users
>>> get users from office365
Example 2:
Retrieve a user whose email matches the specified email address
>>> get users from office365 whose mail is "john@acme.org"
"""