diff --git a/command/acl/acl_helpers.go b/command/acl/acl_helpers.go index b07a819b8726..ac1f1c0e99a7 100644 --- a/command/acl/acl_helpers.go +++ b/command/acl/acl_helpers.go @@ -43,6 +43,12 @@ func GetTokenAccessorIDFromPartial(client *api.Client, partialAccessorID string) func GetPolicyIDFromPartial(client *api.Client, partialID string) (string, error) { // try the builtin policies (by name) first + for _, policy := range structs.ACLBuiltinPolicies { + if partialID == policy.Name { + return policy.ID, nil + } + } + if policy, ok := structs.ACLBuiltinPolicies[partialID]; ok { return policy.ID, nil }