Workflow Soluiton

 View Only
Expand all | Collapse all

AD Remove/Add Manager To User

  • 1.  AD Remove/Add Manager To User

    Posted Jan 11, 2011 12:20 PM

    Hello fellow Workflowers.

    I have been trying to build a workflow that allows a user to update their AD Account information if it is incorrect. The first step of this is to add or update their manager. My workflow allows the user to search for their manager and select him. Next, the existing manager is removed via the Remove Manager From User AD Component. However, no matter what use for the 'User Name' on the Input tab, CommonName, LogonName, DistinguishedName, DisplayName, etc., I get the same ActiveDirectoryError, "Cannot find specified user by pattern." The only thing I can find that even mentions this AD component is the Active Directory Create User demo on the SWAT site. But, unfortunately, it doesn't go into detail on how to set this component up. Any assistance on how to configure the Add/Remove Manager components would be greatly appreciated.

    Thanks,

    Tom



  • 2.  RE: AD Remove/Add Manager To User

    Posted Jan 11, 2011 12:23 PM

    !!!!



  • 3.  RE: AD Remove/Add Manager To User

    Posted Jan 11, 2011 07:40 PM

    You can use the "Assign Manager To User" component.

    It takes 2 inputs

    "User Name" for which user to assign the manager to and "Manager Name" which is the username of the manager



  • 4.  RE: AD Remove/Add Manager To User

    Posted Jan 12, 2011 10:17 AM

    Taking the Remove Manager from User component out does not solve the problem. Instead of the "Cannot find specified user by pattern" ActiveDirectoryError, I am now getting a "Can't find user by Name" error. The question is not which component to use, but what ADUserInfo property to use for the inputs. I tried using CommonName, LogonName, DistinguishedName, DisplayName, and even the ADUserInfo Container for both the User Name and Manager Name inputs and nothing works. Any information I can find on either the Remove or Add Manager components simply says the field is looking for a string variable. My only other options are Dynamic Values or Models, but no Dynamic Mapping.

    AngelD, have you gotten this component to work? If so, what ADUserInfo properties did you use for the User Name and Manager Name inputs?



  • 5.  RE: AD Remove/Add Manager To User

    Posted Jan 12, 2011 10:40 AM

    Sounds like you have missed something in the Context tab settings as this component is very basic...hard to fail with proper inputs.

    Have in mind that the AD user whom is used with the "Setup Properties Input Method" must have rights to change the user object's manager.



  • 6.  RE: AD Remove/Add Manager To User

    Posted Jan 12, 2011 12:41 PM
      |   view attached

    The AD components are set up to use a domain admin account and have full access to make any changes needed. It pulls the user information successfully and populates the ADUserInfo variables successfully. There are a lot of properties associated with the ADUserInfo type, though,  and what I am looking to find out is which one to map to the inputs.

    Its hard to fail with the proper inputs. Well, what are the proper inputs?

    [ADUserInfoVariable.CommonName]?

    [ADUserInfoVariable.DistinguishedName]? ...



  • 7.  RE: AD Remove/Add Manager To User

    Posted Jan 12, 2011 02:40 PM

    Or in Workflow Speak - UserlogonnamePreWindows2000

     

    The terminology is not clear, but that is what is needed in the Manager Name Field in Assign Manager to User.

     

    rob



  • 8.  RE: AD Remove/Add Manager To User

    Posted Jan 12, 2011 03:07 PM

    Rob,

    Thank you for the clarification and your input. However, even when using the UserLogonNamePreWindows2000 property as the Manager Name and User Name, I still get the "Can't find user by Name" ActiveDirectoryError. I also tried using the CommonName property for the User Name, which is what most AD components seem to look for in the examples I have found, and the UserLogonNamePreWindows2000 for the Manager Name but get the same error. The account used to access the AD Info is a domain admin account.

    Is there any other information I can provide that would help isolate the source of the problem?



  • 9.  RE: AD Remove/Add Manager To User

    Posted Jan 12, 2011 03:14 PM

    Or are they in the same forest but in different domains?

    These components do not work cross domain even if they are in the same forrest. For that, you need to use some of the free incendio components that allow you to write a single value to a single field.

     

    If you like, I have an example on my computer - we could do a GoToMeeting (I have an account). We could share screens and take a look at what is going on! I use the AD components all the time, so I am sure the SamAccountname is the proper field...

     

    I'll send you an email with my contact info.

    rob



  • 10.  RE: AD Remove/Add Manager To User
    Best Answer

    Posted Jan 12, 2011 03:55 PM

    Use the UserLogonNamePreWindows2000 property and change the Container Type to "Entire Domain"



  • 11.  RE: AD Remove/Add Manager To User

    Posted Jan 12, 2011 04:27 PM

    Thank you AngelD and Rob for your combined effort in getting me on the right path. Rob, thank you for taking the time out of your day to show me some examples.

    Thanks again for your help!!