Quantcast
Channel: All Centrify Express posts
Viewing all articles
Browse latest Browse all 1833

Re: Active Directory Manager Attribute in Samanage

$
0
0

Within your provisioning script editor, replace your current script with the script below. This will bring all available attributes from active directory profile into Samanage. 

 

Cloud Manager -> Apps -> Samanage -> Provisioning -> Provisioning Script -> Provisioning Script Editor

 

//#!

 

destination.email = source.Email;

destination.name = source.DisplayName;

 

if (source.OfficePhone != null) {

    destination.phone = source.OfficePhone;

}

else if (source.MobilePhone != null) {

    destination.phone = source.MobilePhone;

}

else if (source.HomePhone != null) {

    destination.phone = source.HomePhone;

}

 

destination.title = source.Get('title');

 

site.name = source.Get('physicalDeliveryOfficeName');

if (site.name)

{

    destination.site = site;

}

 

department.name = source.Get('department');

if (department.name)

{

    destination.department = department;

}

 

reports_to.email = source.Get('ReportsToEmail');

if (reports_to.email)

{

    destination.reports_to = reports_to;

}


Viewing all articles
Browse latest Browse all 1833

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>