Skipping org mapping due to invalid format

I was very excited that it is now possible to map roles to organizations in the oauth configuration. It looks like I can get it working too, but I’m also running into a problem.

I get the error:

“msg=“Skipping org mapping due to invalid format.” mapping=urn:mace:xxxxx:xxxxx:group:xxxx:wip:xxxxxxx_view:Org1:Viewer”

This is probably caused by the fact that the reels contain a colon. Is there any way I could resolve this?

Do you have a doc which you followed and details what did you configure, pls?

I was really looking for this feature and it seems it has been added 2 weeks ago:

If I use:

org_mapping = *:Org1:Viewer

So without configuring a specific oauth role it does work.

1 Like

The latest Grafana (11.2.0 as of this writing) allows you to escape the colon, so something like this should work:

org_mapping: urn\:mace\:xxxxx\:xxxxx\:group\:xxxx\:wip\:xxxxxxx_view:Org1:Viewer