How to set a content type field that allows to select user roles for permissions?

2025/08/26 7:48 PM

Hello friends,

I'm trying to add a field to a content type, since this content type is going to be restricted to certain type of user roles.

Note: I tried the data type: Object code names without luck. Maybe I did it wrong, but there is no documentation about this data type at all.

Any recommendation, thanks in advance :)


Environment

  • Xperience by Kentico version: 30.8.0

  • .NET version: 8

  • Private cloud (Azure/AWS/Virtual machine)

Tags:
Content types v30.8.0

Answers

2025/08/27 1:32 PM
Accepted answer

I found the answer.

Data type: Object code names

Form component: Object code names

Object type: cms.role

To response this discussion, you have to login first.