Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >
article

KB-10483: How to provision Proxy Addresses to O365 for Centrify Directory Users

App Access Service ,   App Gateway Service ,  

12 June,18 at 05:10 PM

Question: 

How to provision Proxy Addresses to O365 for Centrify Directory Users (non-Active Directory or LDAP directory users)



Answer:

It is possible to accomplish this task with the combination of Additional Attributes and a provisioning script.

1.  Create an Additional Attribute for Proxy Addresses.  Login to the Centrify Admin Portal and navigate to:  Settings -> Customization -> Additional Attributes.  Click Add.

2.  Create an Attribute with the name O365_Alias and type of Text.

User-added image

3.  Edit your O365 Provisioning script.  Go to:  Apps -> Office 365 -> Provisioning.  Expand the Provisioning Script section at the bottom of the page.

4.  In the section of the code that says:  
 
if (isPerson()) {
      }

Add the following:
if (isPerson()) {
   var proxy_address = source.Get("O365_Alias");
   trace("proxy_address : " + proxy_address);

   if(proxy_address !== null){
   var ProxyAddressArray = proxy_address.split(";");
   trace("ProxyAddressArray.length: " + ProxyAddressArray.length);

   for (var i=0; i < ProxyAddressArray.length; i++){
   addToStringList("ProxyAddresses", ProxyAddressArray[i]);
   trace("destination.ProxyAddresses: " + destination.ProxyAddresses[i]);
   }
   }
Note:  Make SURE the value you put in this line matches EXACTLY the name of the Additional Attribute that you added in Step 2.  ->  var proxy_address = source.Get("O365_Alias");

5.  Populate the Additional Attribute for a Cloud User.  Go to Users -> Additional Attributes.  Click the edit icon in the Value section.

User-added image

6.  In the value field, populate the addresses in the following format:
SMTP:useralias1@test.com;smtp:useralias2@test.com

NOTE:  "smtp:" or "SMTP:"  MUST be used.  "SMTP:" defines a default address.  Also, if multiple Proxy Addresses are needed, use a semi-colon (no spaces) in-between them as shown above.

7.  Let the user provision to O365 automatically, or go into the User and select Actions ->  Sync All Apps

8.  Once provisioning has completed, check O365 Admin Portal to make sure the Aliases/ProxyAddresses have populated.

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.