From a3e47c00f660659e5490c1a84559802e877bc2d9 Mon Sep 17 00:00:00 2001 From: Gabriel Mougard Date: Sat, 16 Nov 2024 17:55:57 +0100 Subject: [PATCH] shared/api: Add `FineGrained` field to `IdentityInfo` Signed-off-by: Gabriel Mougard --- shared/api/auth.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared/api/auth.go b/shared/api/auth.go index 487a77819fac..1d0926e4641a 100644 --- a/shared/api/auth.go +++ b/shared/api/auth.go @@ -99,6 +99,10 @@ type IdentityInfo struct { // Effective permissions is the combined and deduplicated list of permissions that the identity has by virtue of // direct membership to a LXD group, or effective membership of a LXD group via identity provider group mappings. EffectivePermissions []Permission `json:"effective_permissions" yaml:"effective_permissions"` + + // FineGrained is a boolean indicating whether the identity is fine-grained, + // meaning that permissions are managed via group membership. + FineGrained bool `json:"fine_grained" yaml:"fine_grained"` } // IdentityPut contains the editable fields of an IdentityInfo.