Archana (Customer) asked a question.

REST Collector - Graph API to collect Azure AD accounts: account enabled field is retrieving as True/False but IDM accepts as 0 or 1

We have a rest collector which is using Azure Graph API to collect Azure accounts. Graph API returns accountenabled field as True/False. But in IDM, this is accepted as a boolean valu. Is there a way to convert this value as 0 or 1?


  • TimWillemstein2 (Customer)

    I'm currently migrating my post processors to use the new User Interface feature instead of having the code directly in the database packages. Since the UI is the new preferred way of working I won't post my code here since it's not usable there.

     

    However the way I did this was the following ( I think it should work as well in the UI setup):

     

    I stored the accountenabled (or something similar in my case) value in a separate attribute on the account object (either true or false in my scenario) , after collecting (so post processor) I used some sql logic to take this value from the secondary attribute for the accounts and translate it to the expected value from IGL and update it on the corresponding table and IS_DISABLED column for the impacted accounts.

    Expand Post
    Selected as Best
  • Staines_ian (RSA Security)

    This is best done with a custom preprocessing script. Custom Pre-processing and Post-processing scripts are hidden beneath a feature flag. If you need this feature, I request that you open a RSA Customer Support ticket to get access to this setting so that we can track the usage and advise you of the requirements. This requires some knowledge of SQL.

     

    You can also do this by defining a Database collector that collects from RSA internal tables but this is not a supported feature of the product and you must have assistance from RSA PS for this type of collector.

     

    Note that this is not just a limitation of the Generic REST Collector, none of the collectors allow for any type casting of attributes. This is also not only a limitation of the Boolean object but affects other attribute formats including but not limited to dates as well. Attribute conversion can be accomplished in Database type collectors implicitly because they use SQL but this is not a feature of the product generally.

    Expand Post
    • Archana (Customer)

      Thank you for your valuable suggestion. Tried reaching customer support & they are unable to help us in this. Is there any high level documentation available on this which we can refer while integrating.

  • Staines_ian (RSA Security)

    I don't think you really are asking for a high-level documentation. I think you are asking for a very specific solution to this specific issue.

     

    I know RSA PS does provide this type of solution, but I don't know the details of those deliverables. In general they write a post processing handler.

     

    I think what is needed here is the specific post processing handler for this use case.

    Expand Post
    • Archana (Customer)

      Thanks for your reply. Later I received a response from RSA Customer Service on this. Below are the steps to enable this feature (This is for others who are really looking for a solution)

       

      The flag 'enableCustomPostProcessingScript' enables UI based screens to allow custom database script which gets executed as part of the collection pre/post processing jobs. Below are the steps

       

      1. Go to admin>System and then click on the 'edit' button in the 'Settings' tab. 
      2. At the end of the page in the custom table add the value on the left to be 'custom.enableCustomPostProcessingScript'
      3.  Add the value on the right to be 'true'
      4. Click 'save' and then ok.
      5. Now when we edit or create a collector you will have a two new checkboxes that will have the option to right a pre/post processing scripts 

       

      Expand Post
    • TimWillemstein2 (Customer)

      I'm currently migrating my post processors to use the new User Interface feature instead of having the code directly in the database packages. Since the UI is the new preferred way of working I won't post my code here since it's not usable there.

       

      However the way I did this was the following ( I think it should work as well in the UI setup):

       

      I stored the accountenabled (or something similar in my case) value in a separate attribute on the account object (either true or false in my scenario) , after collecting (so post processor) I used some sql logic to take this value from the secondary attribute for the accounts and translate it to the expected value from IGL and update it on the corresponding table and IS_DISABLED column for the impacted accounts.

      Expand Post
      Selected as Best
      • Archana (Customer)

        Hello Tim, I could also solve my issue in a similar way. In pre-processing script window in UI, have wrote the script to transform value from true to 0 and false to 1. This is working fine now!. Thanks for sharing your solution.

  • Staines_ian (RSA Security)

    @Archana (Customer)​ are you willing to share the custom solution you developed here for other customers?

    • TimWillemstein2 (Customer)

      In the past i remember there being quite some extensive blogpost including on this topic. Do we know where these went with the migration to the new site?

10 of 11