Compare commits

...

1 Commits

Author SHA1 Message Date
jules
62ff21927e by id 2023-09-27 17:31:21 -07:00

View File

@ -54,6 +54,24 @@ func Groups(
return getAllGroups(ctx, ac.Groups())
}
func GroupByID(
ctx context.Context,
acct account.Account,
id string,
) (*Group, error) {
ac, err := makeAC(ctx, acct, path.SharePointService)
if err != nil {
return nil, clues.Stack(err).WithClues(ctx)
}
group, err := ac.Groups().GetByID(ctx, id)
if err != nil {
return nil, clues.Stack(err)
}
return parseGroup(ctx, group)
}
func getAllGroups(
ctx context.Context,
ga getAller[models.Groupable],