Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >
article

KB-26785: API Update Resource Discrepancy

Privileged Access Service ,  

4 February,20 at 04:38 PM

Problem:
There is a potential issue on the required arguments for API calls. One that was found is the /ServerManage/UpdateResource API call.
The DN can be taken out if not specified on an update REST API call.

Cause
Since DN is not a required argument, there is a possibility of it being removed from the system in PAS; the results can be seen in PAS reporting.
By running the API call for this you can satisfy the 4 required arguments with:
  1. ID
  2. Name
  3. Computer Class
  4. Domain ID
DN is not required for the API call, which can cause an unintended consequence. Here is an example of that API call using the CCLI:
ccli.exe /ServerManage/UpdateResource `
-ja ID=5eac341a-1e37-4c29-a756-8e318184c9f5 `  
-ja Name=win2k19dev.test.net `
-ja FQDN=win2k19dev.test.net `
-ja ComputerClass=Windows `
-ja DomainId=bb9700df-f99a-4011-969d-e4c5e8cea81a `
-ja AllowAutomaticLocalAccountMaintenance=true `


Response:
{
  "success": true,
  "Result": {
    "ID": "5eac341a-1e37-4c29-a756-8e318184c9f5"
  }
}


After running this report in PAS:
SELECT
    Server.ComputerClass,
    Server.DistinguishedName,
    Server.FQDN,
    Server.ID,
    Server.Name
FROM
    Server


The result is clear that the DN is removed:

User-added image

Workaround/Solution:
Adding the DN to the argument list will allow the DN to be kept. 

 

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.