mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-27 14:48:45 +00:00
feat(group): add group permissions (#10853)
# Which Problems Are Solved Ensuring the user group resource is managed with appropriate permissions. # How the Problems Are Solved By configuring and checking for the relevant permissions needed to create, read, update, and delete the user groups resource. # Additional Changes N/A # Additional Context - Related to #9702 - Follow-up for PRs #10455, #10758
This commit is contained in:
@@ -108,13 +108,12 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
|
||||
// This service provides methods to create, retrieve, update, and delete user groups in an organization.
|
||||
service GroupService {
|
||||
|
||||
// CreateGroup
|
||||
// Create Group
|
||||
//
|
||||
// CreateGroup creates a new user group in an organization.
|
||||
//
|
||||
// Required permissions: // TODO
|
||||
// - "iam.member.write" for instance administrators
|
||||
// - "org.member.write" for organization administrators
|
||||
// Required permissions:
|
||||
// - group.create
|
||||
rpc CreateGroup(CreateGroupRequest) returns (CreateGroupResponse) {
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
@@ -157,12 +156,12 @@ service GroupService {
|
||||
};
|
||||
}
|
||||
|
||||
// GetGroup
|
||||
// Get Group
|
||||
//
|
||||
// Retrieves a group based on its ID.
|
||||
//
|
||||
// Required permission:
|
||||
// - TODO
|
||||
// - group.read
|
||||
rpc GetGroup(GetGroupRequest) returns (GetGroupResponse) {
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
@@ -190,13 +189,12 @@ service GroupService {
|
||||
};
|
||||
}
|
||||
|
||||
// ListGroups
|
||||
// List Groups
|
||||
//
|
||||
// ListGroups returns all groups matching the request and necessary permissions from an organization.
|
||||
//
|
||||
// Required permissions: // TODO
|
||||
// - "iam.member.read" for instance administrators
|
||||
// - "org.member.read" for organization administrators
|
||||
// Required permissions:
|
||||
// - group.read
|
||||
rpc ListGroups(ListGroupsRequest) returns (ListGroupsResponse) {
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
@@ -225,17 +223,16 @@ service GroupService {
|
||||
};
|
||||
}
|
||||
|
||||
// UpdateGroup
|
||||
// Update Group
|
||||
//
|
||||
// UpdateGroup updates the user group.
|
||||
//
|
||||
// In case the group there aren't any changes, the request will return a successful response as
|
||||
// In case there aren't any changes, the request will return a successful response as
|
||||
// the desired state is already achieved.
|
||||
// You can check the change date in the response to verify if the group was updated by the request.
|
||||
//
|
||||
// Required permissions: // TODO
|
||||
// - "iam.member.write" for instance administrators
|
||||
// - "org.member.write" for organization administrators
|
||||
// Required permissions:
|
||||
// - group.write
|
||||
rpc UpdateGroup(UpdateGroupRequest) returns (UpdateGroupResponse) {
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
@@ -264,7 +261,7 @@ service GroupService {
|
||||
};
|
||||
}
|
||||
|
||||
// DeleteGroup
|
||||
// Delete Group
|
||||
//
|
||||
// DeleteGroup deletes the group.
|
||||
//
|
||||
@@ -272,9 +269,8 @@ service GroupService {
|
||||
// the desired state is already achieved.
|
||||
// You can check the deletion date in the response to verify if the group was deleted by the request.
|
||||
//
|
||||
// Required permissions: // TODO
|
||||
// - "iam.member.delete" for instance administrators
|
||||
// - "org.member.delete" for organization administrators
|
||||
// Required permissions:
|
||||
// - group.delete
|
||||
rpc DeleteGroup(DeleteGroupRequest) returns (DeleteGroupResponse) {
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
|
||||
Reference in New Issue
Block a user