hide fault param in Users call (#2483)
## Description Temporary change but based on the branch with the calendar ID fix. This PR should not be merged ## Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [ ] ⛔ No ## Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Test - [ ] 💻 CI/Deployment - [ ] 🧹 Tech Debt/Cleanup ## Issue(s) <!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. --> * #<issue> ## Test Plan <!-- How will this be tested prior to merging.--> - [ ] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
52455356e5
commit
634076328c
@ -20,6 +20,20 @@ type User struct {
|
|||||||
Name string
|
Name string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// UsersCompat returns a list of users in the specified M365 tenant.
|
||||||
|
// TODO(ashmrtn): Remove when upstream consumers of the SDK support the fault
|
||||||
|
// package.
|
||||||
|
func UsersCompat(ctx context.Context, acct account.Account) ([]*User, error) {
|
||||||
|
errs := fault.New(true)
|
||||||
|
|
||||||
|
users, err := Users(ctx, acct, errs)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return users, errs.Err()
|
||||||
|
}
|
||||||
|
|
||||||
// Users returns a list of users in the specified M365 tenant
|
// Users returns a list of users in the specified M365 tenant
|
||||||
// TODO: Implement paging support
|
// TODO: Implement paging support
|
||||||
func Users(ctx context.Context, acct account.Account, errs *fault.Errors) ([]*User, error) {
|
func Users(ctx context.Context, acct account.Account, errs *fault.Errors) ([]*User, error) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user