I tried asking a question on this thread, but as in past I don't know if you got the question.
How can I have advanced location rules in the same form? With the hide from frontend, it hides a full metabox group and so you need to have it [block A - for x user], [block B - for y user], [block C - for all users].
But I need it to be:
field 1 - for all
field 2 - for x user
field 3 - for y user
field 4 - for all
field 5 - for y
field ...40 - for x
How can I use advanced location rules in this setting?
The plugin MB Include Exclude (advanced location rules) does not work with custom fields, it works with meta box (field group) only. You can use the plugin MB Conditional Logic to show/hide field based on a condition. Please read more in the documentation https://docs.metabox.io/extensions/meta-box-include-exclude/