Where to get list of UI element names on which permissions can be applied via GetUIElementInfo?

118 Views Asked by At

I need to apply UI personalization permissions to roles and found this article: https://docs.kentico.com/api11/configuration/roles#Roles-AssigningaUIelementtoarole

Where can I find a list of possible values of the GetUIElementInfo(string, string) overload?

EDIT: For instance I would like to find all matching resources and elements for this graphic:

enter image description here

2

There are 2 best solutions below

1
Dragoljub Ilic On BEST ANSWER

You can find that info in DB. Although it's not very intuitive, but it can be used as good starting point for further investigation.

SELECT res.[ResourceName], ui.[ElementName], ui.[ElementDescription] 
FROM [dbo].[CMS_Resource] AS res      
JOIN [dbo].[CMS_UIElement] AS ui ON ui.[ElementResourceID] = res.[ResourceID] 
0
joym8 On

One workaround I found was inspecting the desired checkbox in the browser and noting the id of the element in HTML. It matches the [CMS_UIElement].[ElementResourceID] in SQL database.

screenshot of inspect checbox in firefox

Just sharing a list of elements I got from accepted answer. Just in case anyone needs to use it.

Kentico 11.0.26 Selective UI Permissions List