Partialy editable form

Hi, so I was wondering if there is a good example anywhere of rendering forms with different fields editable based on a user’s permissions?

I assume it’s to do with building different changesets to feed the form based on the user. But I am unsure of the end to end wiring and best practices for doing that.

In my case, I may have 2 different people who interact with some data. Lets say, a manager and team member. A manager will have one set of fields available while the team member another. There will be some overlap of editable fields, but there will be some fields exclusive to each person.

Unless the access to the fields is runtime-configurable, I’d go with two different forms and two different changesets.