what is the mirror id in service now

Srinivasu2
Tera Contributor

Hi Community,

 

what is the mirror id in service now?

 

 

Srinivasu2_1-1695193715539.png

 

Regards,

Srinivasu

4 REPLIES 4

Peter Bodelier
Giga Sage

Hi @Srinivasu2,

 

It looks like this is something used internally within you organization. It is not a ServiceNow term.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

Revanth Karra
Tera Expert

Dear Srinivasu,

 

Hi @Srinivasu2 . Hope you're doing great! 

 

mirror ID? 

A mirror ID is a reference to a record in the sys_user table. It is used to associate a user with a record in another table, such as a cmdb_ci record or a sc_task record.

 

Steps:

To provide a mirror ID in ServiceNow, you can follow these steps:

  1. Go to the record that you want to associate the user with.
  2. Click the Edit button.
  3. Scroll down to the Mirror ID field.
  4. Enter the Mirror ID of the user.
  5. Click the Save button.

Note

You can find the Mirror ID of a user by going to the user's record in the sys_user table. The Mirror ID is displayed in the Mirror ID field.

 

2nd Method:

You can also use a script to automatically set the Mirror ID of a record when it is created or updated. To do this, you can use the following below code:

 

Code:

 

var mirrorID = gs.getUser().getMirrorID();

gs.setValue("Mirror ID", mirrorID);

 

This code will get the Mirror ID of the current user and set it on the record that you are creating or updating.

 

Kindly, please mark my solution as Helpful/Correct, if applicable. If I could help you with your Query then, please hit the Thumb Icon and mark as Correct!!

 

Thanks & Regards, 

Revanth. K

Product Test Automation Engineer

Do you have any documentation around this? I've never heard of it, but would like to know more around it.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Srinivasu2 ,

 

Mirror ID is nothing but ID of the team member from the group who already has the required access/roles and by looking at which the same access/roles can be provided to the new user which will be created.

 

Please mark my answer helpful & accepted if it helps you resolve your query.

 

Thanks,

Danish