sys_id for non admin users

Heisenberg
Tera Contributor

Hi Experts,

I am new to servicenow, I am using Kingston

Firstly I wanted to know how sys_id gets generated in servicenow is it through UI actions or business rule, please advice.

My second question is how to get the sys_id for non admin users, I want sysid details for my asset Id  how can I get it please advice the steps.

 

 

8 REPLIES 8

Stewe Lundin
Mega Guru

The sys id is as far as I know generated automatically server-side and nothing you have to trigger or can control/prevent.

Why do you as a non admin user need the sys_id?
I don't see the point in it, as a non admin user!

But as a non admin user I don't think you can get hold of it, and the use of it is limited at best.


And I can't as an Admin even publish the SYS_ID without going outside the box...

Yes I can publish it but it takes a bit of fiddling. 

 

 

Hi Stewe,

 

We need this sys id for Asset user to tag with the unique sys_id in consumable forms to maintain certain process.

Can you please advice how to achieve it, only for the asset role not for any other users.

Stewe Lundin
Mega Guru

Is it inside or outside of Servicenow you are going to use it. 

If you are going to use it with Service now just set up a reference field instead and the SYS_ID is automatically represented in the reference field. 

 

An fast and very ugly way to fix this. 

1 create a string value field in the table

name it ge. 
u_my_sys_id


2 Set up a business rule on insert and update, click advanced and add this line of code in the script box.

current.u_my_sys_id = current.sys_id;

This is ugly as hell, but you get the value. 

There are most certainly other ways, with changing the ACL for the table or some more clever plan for it. 

Good luck. 

 

 

Hi Stewe, Thanks for the clarity of information but where to add users or user role here. This is required for asset user.