cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to restrict user/business role access to certain ticket types only ? - C4C Services

moamen
Discoverer
0 Kudos
2,074

I need to ensure that a certain user can only view/access/change certain ticket types only where as he don't have authorization and can't view the rest of the document types ?

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member226
Employee
Employee

Hi,

You can do this with the concept of "Code List Restrictions"(as mentioned by Metthew). here you can define restriction based on the business role for "Ticket Type" code list. This will help you to control access for the Create / Edit Scenario. Pls check here: https://blogs.sap.com/2018/01/17/code-list-restriction-clr-for-sap-hybris-cloud-for-customers/

In order to restrict the user to access the ticket via UI, you can create a new page layout that will be assigned with filtered Queries only for "allowed" ticket type. This page layout then can be assigned to a business role.

Pls check this out here: https://blogs.sap.com/2017/02/06/how-to-use-specific-query-list-in-page-layouts/ (I know it is bit old from HTML5 UI PoV but the concept is still valid for Fiori UI as well )

BR

Saurabh

former_member590177
Participant
0 Kudos

Partial solution would be to use Code List Restrictions on Ticket Type.

Example: if you have two different roles ROLE_1 and ROLE_2, and two ticket types ZABC and ZDEF. Set a Code List Restriction to restrict ROLE_1 to Ticket Type ZABC, ROLE_2 restrict to ZDEF.

This will not stop viewing of tickets, but if for example ROLE_1 user tries to edit a Ticket of type ZDEF, they will get an error on save due to the Code List Restriction.

arun02_12
Contributor
0 Kudos

Hi Moamen,

This might not be possible using the access restriction feature, but you can indirectly restrict access using a query.

Create different queries for each ticket type and assign these queries, one each to different page layout and assign these page layouts to respective business roles.

I hope this helps.

Thanks and regards,

Arun