Create New User and Set as Manager

Create New User and Set as Manager

Comments

  • Im working on a flow to update user information for our SAML users when they log in (the required business data cannot be passed by the ID provider so Im getting it from another source). I added my flow as a run sub-flow step in the SAMLDefaultCreateAccount flow and it works as expected.

    However, one requirement I have is to set the manager on the user. The process is simple enough if the manager already has an account in Decisions, I simply call Integration > Account Relationships > Set Manager. The issue arises when the manager doesnt have an account in Decisions. My thought was to create a new account using Integration > Internal Services > SAMLHandlerService > CreateSAMLAccountForPrimaryIdP and then use the Set Manager step to set the manager to the newly created account.

    This process is creating the manager account fine and I can successfully log in as that manager, but when I try to use the Set Manager step, an exception is raised saying that it cannot find the account. Is there some intermediate step that I need to call first to make this work?

  • Hi Dennis,

    Can you provide a screenshot of error message with details?

    Regards

  • I've attached a screenshot of the flow, highlighted the three relevant steps, and provided the flow data for each step below with context (note, I replaced personal info with generic info to protect the innocent). I hope it helps.\r\n\r\nI'm using our SCCM database as a source for all of our user metadata since it collects the data from our Active Directory instance and is much quicker than querying AD directly. The three steps in question only run if SCCM retrieved a record for the manager account.\r\n\r\nThe \"Find Manager ID\" step searches for a Decisions account by username:\r\n\r\n{[ul][li][url=https://ms-eagle243.ad.georgiasouthern.edu/decisions/Primary/StudioH/?FolderId=8bf100be-9292-11e9-b81d-0050569334cd&pageName=List&flowId=aa79c486-a96e-11e9-b81f-0050569334cd&action=edit]INPUTS[/url]: {[ul][li]searchText: \"username\

  • can you confirm that the accountID mentioned in your error msg actually exists and is not deleted

    [font=Roboto]select * from entity_account where account_id = 6d0424e9-a8e9-421d-bc24-9ef5f38b88c3[/font]

  • Hi Dennis,

    Set Manager step Identifier Type has two option. These are Email and UserId. I think in your example, you are trying to pass manager account id into UserId parameter. That is causing the issue. You can change the identifier type to email and map email of manager account or you should define user identifier while you create that manager account and pass it into UserId. Please check attached screenshots for your reference. If you have any questions please let me know.

    Regards

    [img]att1[/img]

    [img]att2[/img]

  • Sorry for my late reply. I will try your suggestions today and let you know what happens.

Sign In or Register to comment.