Skip to content

Commit

Permalink
shared/api: Add FineGrained field to IdentityInfo
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Mougard <[email protected]>
  • Loading branch information
gabrielmougard committed Jan 8, 2025
1 parent da7e166 commit a3e47c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shared/api/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a3e47c0

Please sign in to comment.