<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D50Z00008G7UbFSAVOkta Classic EngineOkta Integration NetworkAnswered2026-01-22T09:00:26.000Z2017-12-11T23:24:12.000Z2019-11-04T13:46:50.000Z
Hide from GAL/Remove user
Hi all.  How are O365 customers, without an on-prem exchange server or the Exchage attributes in AD, handling hiding departed emplyees from the GAL?  When we try to hide a user from the address list, we receive an error: 

 

The operation on mailbox "user.name_36dc2c04ca" failed because it's out of the current user's write scope. The action 'Set-Mailbox', 'HiddenFromAddressListsEnabled', can't be performed on the object 'user.name_36dc2c04ca' because the object is being synchronized from your on-premises organization. This action should be performed on the object in your on-premises organization.

 

Has anyone else come across this?  If so, what is the resolution?  I have a case with Okta opened but i'm curiouse to see what other folks are doing.

  • j5v7c (j5v7c)

    Hi Jeff,

     

    The only workaround would be switching to Universal Sync and mapping the attribute from your AD Okta instance to O365 as:

    hasDirectoryUser()?findDirectoryUser().MSExchHideFromAddressLists:null

     

    For more information about Universal Sync check:

    https://support.okta.com/help/Documentation/Knowledge_Article/Okta-Enhancements-with-Microsoft-Office-365-Integration-1961576155

     

    Please note that this is an EA feature.

     

    Thanks.
    Expand Post
  • feok4 (feok4)

    Razvan, 

    Thank you for the reply.  We're using Universal Sync but we don't have the msExchHideFromAddressLists attribute in our AD - we don't have an on-prem exchange server nor do we have the schema extended for Exchange.  

     

    Where would I map hasDirectoryUser()?findDirectoryUser().MSExchHideFromAddressLists:null?  Is there an Okta supported document for customers in our situation?

     

    Thanks.

    Expand Post
  • 0o6wy (0o6wy)

    Hi Jeff,

    I'm having the same issue. Did you a get a reply from Okta regarding the case you opened with them concerning this issue? Hope to hear from you. Thank you.

  • feok4 (feok4)

    Adekunle - I'm trying to post the steps we used to resolve but I keep getting an error when responding. Can you ping me offline and i'll send them to you?

  • feok4 (feok4)

    Here are the steps we followed. I’m assuming you’re using AD as a master, as in our case.

    Contact Okta support and let them know you need to see your Active Directory listed under Profile master priority in the Okta profile Okta Admin, Directory, Profile editor
    Under the Okta profile, create a custom attribute as follows:

    * Type: boolean
    * DisplayName: we used msExchHideFromAddressLists
    * Description: we used Hide From GAL
    * User Permission: Read Only
    * Master Priority: Inherit from Okta. This is the most important step, allowing you to edit this attribute if Okta account is mastered by AD, etc.
    * Save Attribute
    In profile editor, choose your Office 365 app, click profile and add attribute

    * Type: boolean
    * DisplayName: we used msExchHideFromAddressLists
    * Description: we used Hide From GAL
    * Save Attribute
    Go to map attributes in the O365 app. At the top, make sure the direction is Okta to O365
    Locate the O365 attribute created above. On the left hand side, start typing the name of the okta attribute you created and Create the mapping. Hit apply update
    Locate a user in Okta, choose Edit and you should now see the attribute you created above. Set to true hide, false to show. Default is undefined

    If you're not familiar with universal directory or the profile editor, contact Okta support for help. IMO, Okta should have this functionality built in.

    I hope this helps.

    Jeff
    Expand Post
  • 0o6wy (0o6wy)

    Hi Jeff,

    Thank you very much. I followed your instructions and it worked for me. It took me almost a week. Though I'm still having issues with the users that had left since 6months ago. Thank you once again.

  • feok4 (feok4)

    Adekunle - the steps to hide someone who left are a little different and it all depends on your off-boarding procedures. I'll assume the AD account still exists but is disabled, the Okta account still exists but it deactivated. Here is what we do:

    • If the mailox for the user who left is a shared mailbox, you need to convert it back to a user mailbox - this will consume a licence but only for a short time (see step down below)
    • Re-enable the AD account
    • Run an AD import from Okta, ensuring the Okta account becomes AD mastered
    • Change an attribute on the AD account, say description, to make sure it flows from AD to Okta to O365
    • Once you have confirmation the attribute flow is working as stated above, proceed to the steps I sent in the earlier post
    • Once the mailbox is hidden, convert the user to a shared mailbox and then remove the licence from the mailbox. Disable AD account, deactivate Okta account

     

    Let me know if this helps.

     

    Jeff

    Expand Post
  • 0o6wy (0o6wy)

    Hi Jeff,

    I activated the formal users on okta which it assigned licenses to them. I follow your last step, Locate a user in Okta, choose Edit and you should now see the attribute you created above. Set to true hide, false to show. Default is undefined. And it worked. Thank you. All good.

     

    Regards,

    Adekunle

     

    Expand Post
  • 0o6wy (0o6wy)

    Hi Jeff,

     

    Sorry to border you again. I tried to create user from my Active directory, the user was created successfully but the Okta refuses to create the user on Okta saying

    msExchHideFromAddressLists Value for required property msExchHideFromAddressLists is missing.

     

    Please have you come across this before. it seems to be the msExchHideFromAddressLists that is missing in the AD.

    I even added an AD schema in active directory, create attribute of msExchHideFromAddressLists and set value to false but still not working. I don't know what I've done wrong.

     

    Any help will be appreciated.

    Regards,

    Adekunle

     

    Expand Post
  • feok4 (feok4)

    Did you check the box for Attribute Required? If so, clear that check box.
10 of 15
This question is closed.
Loading
Hide from GAL/Remove user