From 10b9fee60ec7c0f6d96053f02b4977889f1e19b7 Mon Sep 17 00:00:00 2001 From: Ishank Arora Date: Fri, 6 Aug 2021 10:37:51 +0200 Subject: [PATCH] Specify primary user type for all accounts --- changelog/unreleased/accounts-user-type.md | 3 +++ proxy/pkg/user/backend/accounts.go | 1 + 2 files changed, 4 insertions(+) create mode 100644 changelog/unreleased/accounts-user-type.md 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,