Merge pull request #2364 from ishank011/user-type

Specify primary user type for all accounts
This commit is contained in:
Willy Kloucek
2021-08-06 15:22:45 +02:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
Bugfix: Specify primary user type for all accounts
https://github.com/owncloud/ocis/pull/2364

View File

@@ -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,