Cannot remove a service account from privileged SCC on OpenShift 4

Solution Verified - Updated -

Issue

  • When removing the service account "system:serviceaccount:cluster-collectord:cluster-collectord", it generates the following error:
$ oc adm policy remove-scc-from-user privileged system:serviceaccount:cluster-collectord:cluster-collectord                                                                                                                             
error: unable to find target [cluster-collectord]

$ oc adm policy remove-scc-from-user privileged -z cluster-collectord:cluster-collectord
error: unable to find target [cluster-collectord:cluster-collectord]

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.5 and above

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