I want to set user1 to be read-only, cant control ennity. How can I do

I want to set user1 to be read-only, cant control ennity. How can I do.

How to help us help you - or How to ask a good question - Configuration - Home Assistant Community (home-assistant.io)

i try to use [restriction-card}

type: custom:restriction-card
restrictions:
block:
exemptions:
- user: user2
exemptions:

  • user: user2
    card:
    type: custom:hui-thermostat-card
    entity: climate.lcdy4w_301

this code mean user2 should not be blocked. But the user1 will be blocked, right?

But both of them were blocked. Did I miss anything?

You missed #11.
How to help us help you - or How to ask a good question - Configuration - Home Assistant Community (home-assistant.io)

Since restriction card is not a standard card then it’s either good to include where we can find it or ask the developer of the card this question.
Perhaps someone else uses the card here but I would say you are probably better of asking the question on the GitHub of the card.