@@ -61,10 +61,10 @@ func (s *azureClient) GetAzureADGroupOwners(ctx context.Context, objectId string
61
61
}
62
62
}
63
63
64
- func (s * azureClient ) GetAzureADGroupMembers (ctx context.Context , objectId string , filter string , search string , count bool ) (azure.MemberObjectList , error ) {
64
+ func (s * azureClient ) GetAzureADGroupMembers (ctx context.Context , objectId string , filter string , search string , count bool , selectCols [] string ) (azure.MemberObjectList , error ) {
65
65
var (
66
66
path = fmt .Sprintf ("/%s/groups/%s/members" , constants .GraphApiBetaVersion , objectId )
67
- params = query.Params {Filter : filter , Search : search , Count : count }.AsMap ()
67
+ params = query.Params {Filter : filter , Search : search , Count : count , Select : selectCols }.AsMap ()
68
68
response azure.MemberObjectList
69
69
)
70
70
if res , err := s .msgraph .Get (ctx , path , params , nil ); err != nil {
@@ -246,7 +246,7 @@ func (s *azureClient) ListAzureADGroupMembers(ctx context.Context, objectId stri
246
246
nextLink string
247
247
)
248
248
249
- if list , err := s .GetAzureADGroupMembers (ctx , objectId , filter , search , false ); err != nil {
249
+ if list , err := s .GetAzureADGroupMembers (ctx , objectId , filter , search , false , selectCols ); err != nil {
250
250
errResult .Error = err
251
251
if ok := pipeline .Send (ctx .Done (), out , errResult ); ! ok {
252
252
return
0 commit comments