I'm doing a SharePoint List automation and i need to make a button that only people from a specific field to be able to see it.

I have a column Actions for my button. And a column "Pessoas de atribuicao" with multiple people that keeps updating. Basically, i need to make this button only visible to this group of people

I'm using this code in display field, because it works when the column is a single person field. It just doesn't work when its multiple:

"display": "=if(([$Estado] == 'Documentação Cliente' && [$Pessoasdeatribui_x00e7__x00e3_o.email]== @me, 'block', 'none')"

I'm familiar with buttons in SharePoint and the column name is correct.

Thanks in advance.

1 Answer 1


Use below expression, it should work for you:

"display": "=if([$Estado] == 'Documentação Cliente' && indexOf(join([$Pessoasdeatribui_x00e7__x00e3_o.email],';'), @me) != -1, 'block', 'none')"

Make sure you are using correct internal names of you SharePoint list columns. Follow this to check internal name of your columns: How to find the Internal name of columns in SharePoint Online?

Documentation: SharePoint JSON column formatting

  • 1
    It worked! Thanks so much!
    – Matheus Ha
    Feb 24, 2023 at 17:13
  • You're welcome! Glad it helped you. Keep using this platform to ask any questions about SharePoint. Feb 24, 2023 at 17:18
  • Please accept it as an answer as it helped you and it will help others with similar question to find the correct answer easily. Feb 25, 2023 at 3:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.