---
title: "Comment by Anton on \"Using custom claims & testing RLS with Supabase\" | Hashnode"
description: "There seems to be a few essential details missing. What does the company string in the policy refer to? And how is the custom claim(s) added to the raw_user_met"
url: "https://hashnode.com/posts/using-custom-claims-testing-rls-with-supabase/642461a46185c44a622138c7/comment/650d23b9939d972b9932436f"
---

[Discussion](https://hashnode.com/posts/using-custom-claims-testing-rls-with-supabase/642461a46185c44a622138c7)

Comment [Using custom claims & testing RLS with Supabase](https://hashnode.com/posts/using-custom-claims-testing-rls-with-supabase/642461a46185c44a622138c7)

[Anton](https://hashnode.com/@magick)

[Sep 22, 2023](https://hashnode.com/posts/using-custom-claims-testing-rls-with-supabase/642461a46185c44a622138c7/comment/650d23b9939d972b9932436f)

There seems to be a few essential details missing. What does the `company` string in the policy refer to? And how is the custom claim(s) added to the `raw_user_meta_data`?

[Rodrigo Mansueli](https://hashnode.com/@mansueli)

[Sep 22, 2023](https://hashnode.com/posts/using-custom-claims-testing-rls-with-supabase/642461a46185c44a622138c7/comment/650d23b9939d972b9932436f#reply-650d8fdbf92a4f31b4653c6e)

There was a refactor to change from `company` to `team` and I missed that the screenshot was outdated. I've updated the article to explain this more in-depth. Including setting the claim for a user and how the metadata looks like.

[Anton](https://hashnode.com/@magick)

[Sep 22, 2023](https://hashnode.com/posts/using-custom-claims-testing-rls-with-supabase/642461a46185c44a622138c7/comment/650d23b9939d972b9932436f#reply-650dff7f59ede531e43ef326)

Thanks [Rodrigo Mansueli](https://hashnode.com/@mansueli). BTW - I'm a big fan of your articles. They are a fantastic resource!
