mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:47:32 +00:00
feat: add listIamMembers to system api (#5013)
Added ListIAMMembers endpoint to system-API to provide the functionality to the customer portal
This commit is contained in:
@@ -3,6 +3,7 @@ syntax = "proto3";
|
||||
import "zitadel/object.proto";
|
||||
import "zitadel/options.proto";
|
||||
import "zitadel/instance.proto";
|
||||
import "zitadel/member.proto";
|
||||
import "zitadel/auth_n_key.proto";
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
@@ -173,6 +174,19 @@ service SystemService {
|
||||
};
|
||||
}
|
||||
|
||||
//Returns all instance members matching the request
|
||||
// all queries need to match (ANDed)
|
||||
rpc ListIAMMembers(ListIAMMembersRequest) returns (ListIAMMembersResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/instances/{instance_id}/members/_search";
|
||||
body: "*";
|
||||
};
|
||||
|
||||
option (zitadel.v1.auth_option) = {
|
||||
permission: "authenticated";
|
||||
};
|
||||
}
|
||||
|
||||
// Checks if a domain exists
|
||||
rpc ExistsDomain(ExistsDomainRequest) returns (ExistsDomainResponse) {
|
||||
option (google.api.http) = {
|
||||
@@ -491,6 +505,17 @@ message RemoveInstanceResponse {
|
||||
zitadel.v1.ObjectDetails details = 1;
|
||||
}
|
||||
|
||||
message ListIAMMembersRequest {
|
||||
zitadel.v1.ListQuery query = 1;
|
||||
string instance_id = 2;
|
||||
repeated zitadel.member.v1.SearchQuery queries = 3;
|
||||
}
|
||||
|
||||
message ListIAMMembersResponse {
|
||||
zitadel.v1.ListDetails details = 1;
|
||||
repeated zitadel.member.v1.Member result = 2;
|
||||
}
|
||||
|
||||
message GetUsageRequest {
|
||||
string instance_id = 1 [(validate.rules).string = {min_len: 1, max_len: 200}];
|
||||
}
|
||||
|
Reference in New Issue
Block a user