Integrations/MicrosoftGraphGroups/MicrosoftGraphGroups.py
def list_groups(self, order_by: str = None, next_link: str = None, top: int = None, filter_: str = None) -> Dict:
        """Returns all groups by sending a GET request.

        Args:
            order_by: the group fields to order by the response.
            next_link: the link for the next page of results, if exists. see Microsoft documentation for more details.
                docs.microsoft.com/en-us/graph/api/group-list?view=graph-rest-1.0
            top: sets the page size of results.
            filter_: filters results.
        Returns:
            Response from API.
        """
        params = {'$orderby': order_by} if order_by else {}
        if next_link:  # pagination
            groups = self.http_request('GET', next_link=next_link)
        elif filter_:
            groups = self.http_request('GET', f'groups?$filter={filter_}&$top={top}', params=params)
        else:
            groups = self.http_request('GET', f'groups?$top={top}', params=params)

        return groups
Returns all groups by sending a GET request.

        Args:
            order_by: the group fields to order by the response.
            next_link: the link for the next page of results, if exists. see Microsoft documentation for more details.
                docs.microsoft.com/en-us/graph/api/group-list?view=graph-rest-1.0
            top: sets the page size of results.
            filter_: filters results.
        Returns:
            Response from API.
        
Returns all groups by sending a GET request.
Returns all groups by sending a GET request .
def list_groups(self, order_by: str = None, next_link: str = None, top: int = None, filter_: str = None) -> Dict:
        params = {'$orderby': order_by} if order_by else {}
        if next_link:  
            groups = self.http_request('GET', next_link=next_link)
        elif filter_:
            groups = self.http_request('GET', f'groups?$filter={filter_}&$top={top}', params=params)
        else:
            groups = self.http_request('GET', f'groups?$top={top}', params=params)
        return groups
def list_groups ( self , order_by : str = None , next_link : str = None , top : int = None , filter_ : str = None ) -> Dict : params = { '$orderby' : order_by } if order_by else { } if next_link : groups = self . http_request ( 'GET' , next_link = next_link ) elif filter_ : groups = self . http_request ( 'GET' , f'groups?$filter={filter_}&$top={top}' , params = params ) else : groups = self . http_request ( 'GET' , f'groups?$top={top}' , params = params ) return groups
Returns all groups by sending a GET request.
Returns all groups by sending a GET request .
"""Returns all groups by sending a GET request.

        Args:
            order_by: the group fields to order by the response.
            next_link: the link for the next page of results, if exists. see Microsoft documentation for more details.
                docs.microsoft.com/en-us/graph/api/group-list?view=graph-rest-1.0
            top: sets the page size of results.
            filter_: filters results.
        Returns:
            Response from API.
        """ # pagination
Response from API.
Response from API .
self
order_by
str
the group fields to order by the response.
the group fields to order by the response .
next_link
str
the link for the next page of results, if exists. see Microsoft documentation for more details.
docs.microsoft.com/en-us/graph/api/group-list?view=graph-rest-1.0
the link for the next page of results if exists . see Microsoft documentation for more details . docs . microsoft . com / en - us / graph / api / group - list?view = graph - rest - 1 . 0
top
int
sets the page size of results.
sets the page size of results .
filter_
str
None