diff --git a/api/docs/openapi.yaml b/api/docs/openapi.yaml index eafed7acbd..995be9f3c3 100644 --- a/api/docs/openapi.yaml +++ b/api/docs/openapi.yaml @@ -15554,6 +15554,11 @@ components: type: object portainer.Team: properties: + DenyPortainerAccess: + description: Whether members of this team are denied access to Portainer itself + (EE only) + example: false + type: boolean Id: description: Team Identifier example: 1 diff --git a/api/docs/swagger.yaml b/api/docs/swagger.yaml index 4a219a60e4..465c9e436a 100644 --- a/api/docs/swagger.yaml +++ b/api/docs/swagger.yaml @@ -4543,6 +4543,11 @@ definitions: type: object portainer.Team: properties: + DenyPortainerAccess: + description: Whether members of this team are denied access to Portainer itself + (EE only) + example: false + type: boolean Id: description: Team Identifier example: 1 diff --git a/api/portainer.go b/api/portainer.go index 895ba4f361..ffca43f65d 100644 --- a/api/portainer.go +++ b/api/portainer.go @@ -1398,6 +1398,8 @@ type ( ID TeamID `json:"Id" example:"1"` // Team name Name string `json:"Name" example:"developers"` + // Whether members of this team are denied access to Portainer itself (EE only) + DenyPortainerAccess bool `json:"DenyPortainerAccess" example:"false"` } // TeamAccessPolicies represent the association of an access policy and a team diff --git a/app/react/portainer/generated-api/portainer/types.gen.ts b/app/react/portainer/generated-api/portainer/types.gen.ts index 19da2dad68..1cac497855 100644 --- a/app/react/portainer/generated-api/portainer/types.gen.ts +++ b/app/react/portainer/generated-api/portainer/types.gen.ts @@ -3369,6 +3369,10 @@ export type PortainerTag = { }; export type PortainerTeam = { + /** + * Whether members of this team are denied access to Portainer itself (EE only) + */ + DenyPortainerAccess?: boolean; /** * Team Identifier */ diff --git a/app/react/portainer/generated-api/portainer/zod.gen.ts b/app/react/portainer/generated-api/portainer/zod.gen.ts index 60d2833542..492e65f753 100644 --- a/app/react/portainer/generated-api/portainer/zod.gen.ts +++ b/app/react/portainer/generated-api/portainer/zod.gen.ts @@ -1414,6 +1414,7 @@ export const zPortainerTag = z.object({ }); export const zPortainerTeam = z.object({ + DenyPortainerAccess: z.boolean().optional(), Id: z.int().optional(), Name: z.string().optional(), });