diff --git a/changelog/unreleased/accounts-user-type.md b/changelog/unreleased/accounts-user-type.md new file mode 100644 index 0000000000..f18ab9b210 --- /dev/null +++ b/changelog/unreleased/accounts-user-type.md @@ -0,0 +1,3 @@ +Bugfix: Specify primary user type for all accounts + +https://github.com/owncloud/ocis/pull/2364 diff --git a/proxy/pkg/user/backend/accounts.go b/proxy/pkg/user/backend/accounts.go index 36241c4cbe..96b57fb5a0 100644 --- a/proxy/pkg/user/backend/accounts.go +++ b/proxy/pkg/user/backend/accounts.go @@ -144,6 +144,7 @@ func (a *accountsServiceBackend) accountToUser(account *accounts.Account) *cs3.U Id: &cs3.UserId{ OpaqueId: account.Id, Idp: a.OIDCIss, + Type: cs3.UserType_USER_TYPE_PRIMARY, // TODO: once we have support for other user types, this needs to be inferred }, Username: account.OnPremisesSamAccountName, DisplayName: account.DisplayName,