How to Properly Add a Kubernetes User

So I deployed charmed Kubernetes using Juju and now I’m trying to create a user to provide access to the cluster. I used below guide to create the user.

However, the when the user is created and when I used the user’s kubeconfig, to access the cluster, I’m getting “error: You must be logged in to the server (Unauthorized)”.

Command used: juju run kubernetes-control-plane/0 user-create name=‘lahiru’ groups=“system:masters”

Weird part is when I tried to decode the secret, I’m seeing groups with each letter comma separated.

Command: kubectl -n kube-system get secret auth-lahiru-87tt0yyncl -o jsonpath=‘{.data.groups}’ | base64 --decode Output: s,y,s,t,e,m,:,m,a,s,t,e,r,s

But, when I decode the same for admin secret I see the output properly ( as system:masters). I tried with single quotes, double quotes and without quotes, still the output was same.

What could I be missing? Is this a know bug?

Your opinions and support on this is highly appreciated.