2

How can I check in JSON that current user @me belongs to particular SharePoint admin group if its does not belong hide the column.

"customRowAction": {
    "action": "setValue",
    "actionInput": {
        "PersonColumnInteranalName": "@me"
    }
}

1 Answer 1

3

You cannot check SharePoint group membership using JSON formatting.

setValue can only be used to update the list item with the field values provided inside actionInput.

Documentation: JSON formatting syntax reference


Update (Additional info):

Using JSON formatting, you can check if user belong to a "Person or Group" column from same SharePoint list. Check below samples as reference for this:

  1. Highlight the current user
  2. Highlight the current user - multi-person-currentuser

Your Answer

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

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