Allow users from a particular group only to submit service catalog request.

Lal Valecha1
Tera Contributor

Hello, 
I have created a group 'TestGroup' and added a role to it, 
Now the requirement is - Allow users from group 'TestGroup' to submit a service catalog 'Test_SC' request, 

else, for other users show an alert/popup message.

 

Kindly help if you have any solution, 

#ServiceCatalog #scriptinclude #Groups #roles

 

 

Thanks in advance, 
Lal Valecha

4 REPLIES 4

Community Alums
Not applicable

Hi @Lal Valecha1 ,

 Just create user criteria for the catalog item so only those users that are allowed have access to it.

You can apply user criteria to all types of catalog item, including order guides, content items, and record producers.

Note: The user criteria restriction applies only within Service Catalog for the specific item it is applied for. However, the user criteria restriction is not applied outside the Service Catalog where the user has access to the item via the table.

Procedure

  1. In an item record, navigate to the Available For or Not Available For related lists.
  2. Click Edit to add an existing user criteria record, or click New to create a new one.
  3. Save the record to associate the user criteria record with the item.
    Note: The Not Available For settings override Available For settings. A user on the Not Available For list for an item cannot access that item, even if that user is also on the Available For list for that item.

Apply user criteria to categories

Apply user criteria to a category to define which users can and cannot access a category.

Before you begin

Role required: admin

Procedure

  1. In a category record, navigate to the Available For or Not Available For related lists.
  2. Click Edit to add an existing user criteria record, or click New to create a new one.
  3. Save the record to associate the user criteria record with the category.
    Note:
    • The Not Available For settings override Available For settings. A user on the Not Available For list for a category cannot access that category, even if that user is also on the Available For list for that category.
    • The user criteria restrictions of a category do not automatically apply to the catalog items within the category. If required, you should apply the user criteria restrictions to the individual catalog items.

     

    The other way would be using roles , Refer to this : Setting user roles for service catalog items

     

     

Hello @Community Alums,

 

Thank you for your solution, 

It is correct and helpful,

 

But I want to achieve it with Script include, please let me know if you can help.

 

Thanks, 

Lal Valecha

Community Alums
Not applicable

Hi @Lal Valecha1 ,

I think the above answer which i gave is correct and it's the recommended way to achieve it.

Why you want to take Script include route and make it more complex.

 

Hey @Community Alums, 
I want the Catalog item to be visible for all the users, but 'requested for' member should be only from that particular group 'TestGroup'.

If I will use Available for then that Catalog item will not be visible to all users.\

 

Thanks, 
Lal Valecha