IBM Verify

IBM Verify

Join this online user group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  ISAM - How to update Mobile number with SCIM API.

    Posted Thu December 17, 2020 02:34 AM

    Hello All,

    I'm trying to update the mobile number of user with the scim API.

    as we have 4 types of mobile number (mobile, work, pager, home).

    How to update the mobile number of type mobile??

    I have tried with multiple paths to update the mobile number.


    Example - 1: (Fail)
    {
    "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
      "Operations":[{
        "op": "replace",
        "path": "urn:ietf:params:scim:schemas:core:2.0:User:phoneNumbers:mobile",
        "value":"1234567890"
        }]
    }

    Example - 2: (Fail)
    {
    "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
      "Operations":[{
        "op": "replace",
         "path": "urn:ietf:params:scim:schemas:core:2.0:User:phoneNumbers[0]",
         "value":"1234567890"
      }]
    }

    Example - 3: (Fail)
    {
    "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
      "Operations":[{
        "op": "replace",
        "path": "urn:ietf:params:scim:schemas:core:2.0:User:phoneNumbers[0]",
        "value":{
           "type": "mobile",
           "value": "1234567890"
        }
       }]
    }

    Can anyone help me with the same?



    ------------------------------
    Mukesh
    ------------------------------


  • 2.  RE: ISAM - How to update Mobile number with SCIM API.
    Best Answer

    Posted Fri December 18, 2020 04:45 AM

    Hi Mukesh,

    Not 100% sure on Verify Access but on Verify, this syntax works to update a single mobile number:

    {
        "Operations": [
            {
               	"op":"replace",
               	"path":"phoneNumbers[type eq \"mobile\"].value",
               	"value": "0123456789"
            }
        ],
        "schemas": [
            "urn:ietf:params:scim:api:messages:2.0:PatchOp"
        ]
    }
    

    Jon.



    ------------------------------
    Jon Harry
    Consulting IT Security Specialist
    IBM
    ------------------------------



  • 3.  RE: ISAM - How to update Mobile number with SCIM API.

    Posted Tue December 22, 2020 03:00 AM

    Hi Jon,

    Thanks a Lot!!

    it's working on verify access also.

    even below syntax is also working fine.

    {
      "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
      "Operations":[{
        "op""replace",
        "path""urn:ietf:params:scim:schemas:core:2.0:User:phoneNumbers[type eq \"mobile\"].value",
        "value":"1234567890"
      }]  
    }


    ------------------------------
    Mukesh
    ------------------------------