(oauth, user_id, fields)
Iterate group objects of a user
Iterate group objects of a user
Iterate group objects of a user
def iter_user_member_of(oauth, user_id, fields):
    ''' Iterate group objects of a user '''
    url_template = 'https://graph.microsoft.com/v1.0/users/{}/transitiveMemberOf'
    url = url_template.format(user_id)
    yield from _iter_objects(oauth, url, params={"$select": ','.join(fields)})
def iter_user_member_of ( oauth , user_id , fields ) : url_template = 'https://graph.microsoft.com/v1.0/users/{}/transitiveMemberOf' url = url_template . format ( user_id ) yield from _iter_objects ( oauth , url , params = { "$select" : ',' . join ( fields ) } )