diff --git a/vault/identity_store_groups.go b/vault/identity_store_groups.go index bad840bd87d9..6e3072a86f3b 100644 --- a/vault/identity_store_groups.go +++ b/vault/identity_store_groups.go @@ -289,14 +289,17 @@ func (i *IdentityStore) handleGroupReadCommon(group *identity.Group) (*logical.R if group.Alias != nil { aliasMap["id"] = group.Alias.ID aliasMap["canonical_id"] = group.Alias.CanonicalID - aliasMap["mount_type"] = group.Alias.MountType aliasMap["mount_accessor"] = group.Alias.MountAccessor - aliasMap["mount_path"] = group.Alias.MountPath aliasMap["metadata"] = group.Alias.Metadata aliasMap["name"] = group.Alias.Name aliasMap["merged_from_canonical_ids"] = group.Alias.MergedFromCanonicalIDs aliasMap["creation_time"] = ptypes.TimestampString(group.Alias.CreationTime) aliasMap["last_update_time"] = ptypes.TimestampString(group.Alias.LastUpdateTime) + + if mountValidationResp := i.core.router.validateMountByAccessor(group.Alias.MountAccessor); mountValidationResp != nil { + aliasMap["mount_path"] = mountValidationResp.MountPath + aliasMap["mount_type"] = mountValidationResp.MountType + } } respData["alias"] = aliasMap