none
Mapping Drive Based on an AD Attribute

    Question

  • Hi

    We have around 22000 users in our AD environment. We have a requirement to map a drive to users using a unused attribute of user object. For example UserSharedFolder attribute. What we've planned is that using script we'll stamp the UNC path of drive as a value of this attribute and later using a means like GPP or script write a code to read the attribute value and map it as a shared drive.

    I want to know if it's possible through GPP to achieve this requirement. If yes, how.

    Is there any other means to achieve the same task.

    Thanks

    Taranjeet Singh


    zamn

    Tuesday, December 22, 2015 9:39 AM

Answers

  • A big thank you Martin for all your guidance.

    I was able to successfully achieve the desired result.

    Sharing the steps so that others can benefit from it:

    Create a environment variable like this:

    Now, create a GPP Drive Map rule like this:

    Our process assumes that the users’ shared drive (UNC) path is already populated in the “UserSharedFolder” attribute as shown below:

    Once all the above steps are done, we can see the user variable and mapped drive on client:

    Thanks

    Taranjeet Singh


    zamn

    Monday, January 04, 2016 10:49 AM
  • > I want to know if it's possible through GPP to achieve this requirement.
    > If yes, how.
     
    Yes, it is. In GPP Drive Mappings, enable Item Level Targeting and
    target for a LDAP query. There you can store the content of an attribute
    of your choice in a temporary environment variable, and this variable
    can be used as the UNC path for the mapping.
     
    shows how to use that. For a different task, but same technique.
     
    > Is there any other means to achieve the same task.
     
    Scripting is always at hand for almost every task :)
     
    Tuesday, December 22, 2015 10:17 AM
  • > Thanks Martin for such a quick response. I'm still not clear on how the
    > value of the variable defined in ILT will be populated in the "Location"
    > field of the drive mapping rule of GPP.
     
    Simply by typing it in... If the ILT finds the user and can read your
    attribute, the attribute value will be contained in the variable. And if
    you type this variable into the location field, GPP will resolve it to
    your value and map the appropriate UNC path.
     
    Tuesday, December 22, 2015 12:00 PM

All replies

  • > I want to know if it's possible through GPP to achieve this requirement.
    > If yes, how.
     
    Yes, it is. In GPP Drive Mappings, enable Item Level Targeting and
    target for a LDAP query. There you can store the content of an attribute
    of your choice in a temporary environment variable, and this variable
    can be used as the UNC path for the mapping.
     
    shows how to use that. For a different task, but same technique.
     
    > Is there any other means to achieve the same task.
     
    Scripting is always at hand for almost every task :)
     
    Tuesday, December 22, 2015 10:17 AM
  • Thanks Martin for such a quick response. I'm still not clear on how the value of the variable defined in ILT will be populated in the "Location" field of the drive mapping rule of GPP.

    Appreciate more insight to this.

    Thanks

    Taranjeet Singh

     

    zamn

    Tuesday, December 22, 2015 10:39 AM
  • > Thanks Martin for such a quick response. I'm still not clear on how the
    > value of the variable defined in ILT will be populated in the "Location"
    > field of the drive mapping rule of GPP.
     
    Simply by typing it in... If the ILT finds the user and can read your
    attribute, the attribute value will be contained in the variable. And if
    you type this variable into the location field, GPP will resolve it to
    your value and map the appropriate UNC path.
     
    Tuesday, December 22, 2015 12:00 PM
  • A big thank you Martin for all your guidance.

    I was able to successfully achieve the desired result.

    Sharing the steps so that others can benefit from it:

    Create a environment variable like this:

    Now, create a GPP Drive Map rule like this:

    Our process assumes that the users’ shared drive (UNC) path is already populated in the “UserSharedFolder” attribute as shown below:

    Once all the above steps are done, we can see the user variable and mapped drive on client:

    Thanks

    Taranjeet Singh


    zamn

    Monday, January 04, 2016 10:49 AM
  • > A big thank you Martin for all your guidance.
     
    My pleasure :)
     
    > Create a environment variable like this:
     
    You can skip this step - simply use the ILT directly in the drive
    mapping. I created real environment variables in my example just for fun :)
     
    Monday, January 04, 2016 11:27 AM