London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Role x Has Permissions for Functions

Vote:
0

Was wondering if there is a gadget, or existing view in the admin console that shows Role x has the following permissions.

I know I can navigate to the "Permissions for Fucntions" view, but this shows a giant containing all of the permissions available. 

I am looking for something that can show: The role Customer_Support_Analyst has the following permissions

started looking into implementing a gadget and discovered the table tblUserPermission which contains most of the information I am looking for, but does not contain the friednly description of the role.

For Instance, in the Permissions for functions screen you can see "Allows access to create catalog meta classes - (catalog:admin:meta:cls:mng:create)" but the tblUserPermission table only contains catalog:admin:meta:cls:mng:create.

#203887
May 09, 2019 17:02
Vote:
0

That is actually a localization part, not the part of the data itself. 

#203889
May 09, 2019 17:37
Vote:
0

Quan, thanks for your response.

So is it possible to fetch this information from Epi's internal Localization?

#203891
May 09, 2019 19:30
Vote:
0

"admin/permissiontype/group/<permission group name, in your example, EpiCommerce>/permissions/<the permission without the : delimiter, in your example, catalogadminmetaclsmngcreate>" would give you the path to translation 

#203893
Edited, May 09, 2019 22:40
Vote:
0

Ah Interesting.

I tried the following and i am receiving an empty string for each:

var permission = LocalizationService.Current.GetString("admin/permissiontype/group/epicommerce/permissions/catalogadminmetaclsmngcreate");
var permission = LocalizationService.Current.GetString("/admin/permissiontype/group/epicommerce/permissions/catalogadminmetaclsmngcreate");
var permission = LocalizationService.Current.GetString("/episerver/admin/permissiontype/group/epicommerce/permissions/catalogadminmetaclsmngcreate");
#203896
May 09, 2019 23:45
Vote:
0

Sorry, it should have been groups, instead of group 

#203899
May 10, 2019 6:56
Vote:
0

Thanks Quan Mai, this ticket can be closed!

The line that worked is:

var permission = LocalizationService.Current.GetString("/admin/permissiontype/groups/epicommerce/permissions/catalogadminmetaclsmngcreate")
#203920
May 10, 2019 20:59
Vote:
0

Quan Mai,

I found a few instances where the translation returns ""

For instance, the below returns ""

LocalizationService.Current.GetString("/admin/permissiontype/groups/epicommerce/permissions/contentsitemngview")

was wondering if instead of epicommerce maybe epicms ?

#204176
May 21, 2019 16:21
Vote:
0

It is the group name, in case of cms yes it should be epicms   (actually I'm not sure, check your db, you should see it there)

#204178
Edited, May 21, 2019 16:23
Vote:
0

Quan Mai, do you know where in the DB I can find this? Which Table Name?

#204183
May 21, 2019 23:10
Vote:
0

Look into tblUserPermission. I think it's EPiServerCMS 

#204188
May 22, 2019 8:47
Vote:
0

Thanks Quan Mai!

#204222
May 22, 2019 19:57
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.