kenticokentico-api

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


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


Solution

  • 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]