feat(/internal): Add User Resource Owner (#9168)

Update the  ../proto/zitadel/member.proto to
include the UserResourceOwner as part of member.

Update the queries to include UserResourceOwner
for the following :
zitadel/internal/query/iam_member.go
zitadel/internal/query/org_member.go
zitadel/internal/query/project_member.go
zitadel/internal/query/project_grant_member.go

Non Breaking Changes

# Which Problems Are Solved

https://github.com/zitadel/zitadel/issues/5062

# How the Problems Are Solved

- Updated the member.proto file to include user_resource_owner. I have
compiled using` make compile` command .
- Changed the queries to include the userResourceOwner as part of
Member.
- Then, updated the converter to map the userResourceOwner.

# Additional Changes

Replace this example text with a concise list of additional changes that
this PR introduces, that are not directly solving the initial problem
but are related.
For example:
- The docs explicitly describe that the property XY is mandatory
- Adds missing translations for validations.

# Additional Context


- Closes #5062 
-
https://discordapp.com/channels/927474939156643850/1326245856193544232/1326476710752948316
This commit is contained in:
MAHANTH-wq
2025-01-15 14:10:30 +05:30
committed by GitHub
parent d01d003a03
commit b664ffe993
11 changed files with 78 additions and 5 deletions

View File

@@ -47,11 +47,11 @@ type Members struct {
}
type Member struct {
CreationDate time.Time
ChangeDate time.Time
Sequence uint64
ResourceOwner string
CreationDate time.Time
ChangeDate time.Time
Sequence uint64
ResourceOwner string
UserResourceOwner string
UserID string
Roles database.TextArray[string]
PreferredLoginName string