Alternative ways to adjust user criteria

SelahattinY
Tera Contributor

In my project i have the requirement for users with a specific role to be able to adjust the "companies" field in user criterias. Currently they can only read and not adjust anything. Are there any other ways of accomplishing this, other than by using ACLs?

 

The only other way that comes to my mind is, thats maybe possible is:

 

Build an Record Producer, that can be accessed by the those users, where you can choose the User Criteria and after that a company. The RP script makes the assignment of the company to the user criteria.

 

Are there maybe any disadventages to this method? Are there any other methods?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@SelahattinY 

I will suggest to use ACL.

record producer is not a good approach.

You can use catalog item and ask them to submit the request.

Then workflow or flow can be configured to update the User Criteria

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

3 REPLIES 3

GlideFather
Tera Patron

Hi @SelahattinY 

 

to give somebody the rights to adjust the user criteria records, the user must have user_criteria_admin.

 

Your scenario is that defined amount of users will have the chance to update company and nothing else?

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


@SelahattinY 

specifically for the one Companies (company) field, you must give access to the entire table (user_criteria) and to the field:

KamilT_0-1752676236841.png

 

What I can see as a challenge is direct modifying in PROD. It happened to us a couple of times that our manager wanted to help us and "easy" requirements such as user criteria updates were doing for us to unload our stuff, but they did it in PROD and not in TEST and DEV and it is very tricky, let me explain why.

 

You have DEV - TEST - PROD, after a clone so it is all the same, you have 10 companies in a user criteria.

DEV 10, TEST 10, PROD 10.
Now somebody will update the PROD only and add there two more companies:

DEV 10, TEST 10, PROD 12 - it can work fine for long time but then you add 1 new company from DEV and look what happened:

DEV 11, TEST 11, PROD 11 (but removing the +2 above)

 

I don't know if it makes sense, but because the companies were in prod and not in test, you will overwrite it from dev and basically you remove what was not copied to non-prod.

 

This is a great challenge when giving access to this part... it must be always reflected in all environments.

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Ankur Bawiskar
Tera Patron
Tera Patron

@SelahattinY 

I will suggest to use ACL.

record producer is not a good approach.

You can use catalog item and ask them to submit the request.

Then workflow or flow can be configured to update the User Criteria

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader