Crashplan - Org Script

This is the Crashplan sample org script. It puts users in the right organizations, and DIVISION 1 users in suborganizations.
You can get to it by going to the CP console, and going to Settings Ã  Security Ã  LDAP Servers Ã  click on the server Ã  Org name script

function(entry)
 {if (entry.company == null)
      {return "Default"}
 else if(entry.company == "Organization 1")
        {
                                if(entry.physicalDeliveryOfficeName == "Division 1")
                                                {return "Organization 1 - DIVISION 1";}
                                else if(entry.physicalDeliveryOfficeName == " Division 1")
                                                {return "Organization 1 - DIVISION 1";}
                                else if(entry.physicalDeliveryOfficeName == " Division 2")
                                                {return "Organization 1 – Division 2";}
                                else
                                                {return "Organization 1";}
                }
 else if(entry.company == "Organization 2")
        {return "Organization 2";}
 else if(entry.company == "Organization 3")
        {
                                if(entry.physicalDeliveryOfficeName == "Division 1")
                                                {return "Organization 3 - DIVISION 1";}
                                else if(entry.physicalDeliveryOfficeName == " Division 1")
                                                {return "Organization 3 - DIVISION 1";}
                                else
                                                {return "Organization 3";}
                }
 else if(entry.company == "Organization 4")
        {return "Organization 4";}
 else if(entry.company == "Organization 5")
        {return "Organization 5";}
 else if(entry.company == "Organization 6")
        {
                                if(entry.physicalDeliveryOfficeName == "Division 1")
                                                {return "ORGANIZATION 6 - DIVISION 1";}
                                else if(entry.physicalDeliveryOfficeName == " Division 1")
                                                {return "ORGANIZATION 6 - DIVISION 1";}
                                else
                                                {return "Organization 6";}
                }
 else if(entry.company == "Organization 7")
        {return "Organization 7";}
 else if(entry.company == "Organization 8")
        {
                                if(entry.physicalDeliveryOfficeName == "Division 1")
                                                {return "Organization 8 - DIVISION 1";}
                                else if(entry.physicalDeliveryOfficeName == " Division 1")
                                                {return "Organization 8 - DIVISION 1";}
                                else
                                                {return "Organization 8";}
                }
 else if(entry.company == "Organization 9")
        {
                                if(entry.physicalDeliveryOfficeName == "Division 1")
                                                {return "ORGANIZATION 9 - DIVISION 1";}
                                else if(entry.physicalDeliveryOfficeName == " Division 1")
                                                {return "ORGANIZATION 9 - DIVISION 1";}
                                else
                                                {return "Organization 9";}
                }
 else
        {return "Default"}
 }
Share on Google Plus

About Tom DeMeulenaere

Highly accomplished information technology professional with extensive knowledge in System Center Configuration Manager, Windows Server, SharePoint, and Office 365.
    Blogger Comment

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.