How to give a field of Dexterity Content Types different permission to different group or role?

I add a new Dexterity Content Types which including fieldA and fieldB.
I plan to let author to input fieldA and fieldB, but fieldA visible only to groupA, fieldB visible only to groupB.
How can I get that?


You can use schema hints as described in

from plone.autoform import directives

reviewNotes = schema.Text(
    title=u'Review notes',

You can use existing permissions or use your own one. Assign the group the permissions either global or local.

Are read/write permissions only enforced on the form level or also on the storage level?
Core question is about how to define permissions on individual fields where the backend enforces the checks for read/write e.g. when you access or modify content through plone.restapi.

This is schema level, and if plone.restapi takes that into account (which I think it does) than that should be fine. But never did a test on that :wink:

According to the tests this is working: and

1 Like