Service account can't list templates

Solution Verified - Updated -

Issue

  • When attempting to list templates from any namespace using a service account, below error is displayed
Error from server (Forbidden): templates.template.openshift.io is forbidden: User "system:serviceaccount:default:examplesa" cannot list resource
templates" in API group "template.openshift.io" in the namespace "example"

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content