Mapping custom field with SCIM API

Alex Ng
Tera Contributor

Hi Community,

 

I am trying to consume SCIM API that comes from "SCIM v2 - ServiceNow Cross-domain Identity Management" plugin. Referring to documentation on "https://docs.servicenow.com/bundle/tokyo-application-development/page/integrate/inbound-rest/concept...", I can basically do a POST command to create records in User [sys_user] table.

In SCIM schema, it supports "userType" attribute. May I know how do I map this attribute back to a custom field in ServiceNow? I realize I can create record successfully with a code of 201 using the REST API but I cannot seems to find a menu path or configuration to map this attribute back to ServiceNow User [sys_user] table.

Can you please advice if anyone has done this before and what do I require to map a custom field in ServiceNow with a field from the SCIM schema?

Thank you!

1 ACCEPTED SOLUTION

Clarkie1
Giga Expert

Hey Alex,

The only way to do this is on Tokyo version (or higher) as it supports SCIM customisation. Once upgraded, you can look at the SCIM ETL definitions and tweak as required.

 

View solution in original post

12 REPLIES 12

Me again! Sorry!

Ive set up the extension schema like you advised and validated it and its active.  Ive made the changes to scim-user, and user, but when I try and post the new user record, I get the invalidValue error still. 

I have set the employee number into the attribute for manager under the urn:ietf:params:scim:schemas:extension:servicenow:2.0:User:

{
  "manager": 
  {
    "value": "EMPLOYEE_NUMBER"
  }
}

I have mapped the scim-user 'Manager' to 'custom.manager'  and user 'manager' to manager.employee_number, but it still says it doesn;t exist, and only works with the sys_id of the manager.

 

Am I missing something?  Your help would be really appreciated thank you

Oh! I did it!  OK it creates the new schema reference:

 

urn:ietf:params:scim:schemas:extension:servicenow:custom:2.0:User

 

Which you need to add into the JSON content in the body at the top under 'schemas' and also add it under the other schema attributes:

 

"urn:ietf:params:scim:schemas:extension:servicenow:custom:2.0:User" :
{
"manager" : "EMPLOYEE_NUMBER"
}
}

 

AND IT WORKS!!  So chuffed, thank you for your help

 

Hi, I was following this thread and made the same changes as per steps mentioned above. But not sure my integration is not working. We are trying to provision users and groups from Azure AD using SCIM custom application. Azure is sending Manager user id in the request but since ServiceNow SCIM default setting was expecting sys_id, I changed the configuration as suggested here. But still it is not working. Am I missing some steps here?

1. I've created SCIM extension custom schema for manager

2. I've updated ETL mapping for scim-user and user

what else needs to be done?