How to hide all users in a particular OU in the Global Address List.

We are running DirSync and ADFS in our O365 environment. We want to hide all students in our GAL. We know this can be done one user object at a time in ADSIeditor, but does anyone have a method or PSSscript to hide all user objects that are contained in
a particular OU? Trying to avoid a tedious manual process.
Mike

Hi Mike,
The scripts posted by others should be helpful for you, please also note if you want to run powershell in O365 environment, you need to follow this article:
Connect Windows PowerShell to Exchange Online service to connect the exchange online firstly.
In addition, this script may be helpful for you to customize your own script:
Hide users from GAL
I hope this helps.
If you have any feedback on our support, please click here.
Best Regards
Anna
TechNet Community Support

Similar Messages

  • How to see all users who are allowed permissions for the specified entity ?

    How to see all users who are allowed permissions for the specified entity ? 
    And change user permissions for the current entity
    from Moscow with money

    Vincent,
    ... and how to change entity permissions for some users?
    from Moscow with money

  • How to get all users under an organizations?

    Hello everyone.
    Just want to know if anyone knows how to get all users under a particular organization.
    From the Search User form, I found they may kind of user such attribute conditions:
    MemberObjectGroup
    is in
    XXXX(organization)
    But unfortunately, the "is in" is not a valid AttributeConditionOperator, so besides using "recursive" self-written function, anyone knows any possible buit-in trick?

    Here is my solution:
    <Rule'>
        <RuleArgument name='organization'/>
        <RuleArgument name='context'/>
        <block>
            <defvar name='orgs'>
                <new class='java.util.ArrayList'/>
            </defvar>
            <invoke name='getChildObjectGroupNames'>
                <invoke name='getObject' class='com.waveset.ui.FormUtil'>
                    <ref>context</ref>
                    <s>ObjectGroup</s>
                    <ref>organization</ref>
                </invoke>
                <ref>orgs</ref>
            </invoke>
            <append name='orgs'>
                <ref>organization</ref>
            </append>
            <invoke name='getUsers' class='com.waveset.ui.FormUtil'>
                <ref>context</ref>
                <map>
                    <s>conditions</s>
                    <list>
                        <new class='com.waveset.object.AttributeCondition'>
                            <s>MemberObjectGroups</s>
                            <s>in</s>
                            <ref>orgs</ref>
                        </new>
                    </list>
                </map>
            </invoke>
        </block>
        <MemberObjectGroups>
            <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
        </MemberObjectGroups>
    </Rule>

  • Downloaded Global Address List does not download all fields

    I have my Global Address List from the Exchange Server linked into an Access 2003 database. (Will not link to Access 2007, 2010 format).  There is one field (TITLE) that appears in the structure of the linked table but the data for that field is not
    downloaded.  When I look at the Global Address List in Outlook, the TITLE field is populated with the appropriate data.  How can I get the data from the TITLE field into the Access linked table?

    Hi Kay_some,
    >>I have my Global Address List from the Exchange Server linked into an Access 2003 database. (Will not link to Access 2007, 2010 format). There is one field (TITLE) that appears in the structure of the linked table but the data for that field
    is not downloaded. <<
    If I understood correctly, the data of TITLE filed didn't download in Access 2003. Also as far as I tested, this field works well in Access 2013.
    Since the support and updates for Office 2003 is no longer available. Office 2003 products no longer receive the following:
    Assisted support
    Online content updates
    Software updates from Microsoft Update
    Security updates to help protect your PC from harmful viruses, spyware, and other malicious software, which can steal your personal information.
    To get more powfull experience about using Access, I suggest that you update it to the latest version.
    In addtion, this forum is for developers discussing developing issues about Access, if you have issues about end-user, you can get more effective response from
    Microsoft Office TechNet or
    Office Microsoft Commnity forum.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Outlook 2010 - how to make "global address list" display larger?

    Does anyone know how to make the "global address list" box and text appear larger in Outlook 2010? 
    Thanks

    What do you mean? Can you please explain in detail?
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • How to show all user logged in/loggout in Report

    How to display All User Logged in time & Logout Time?
    Hi..
    I want to display All user in Portlet a report that show us all user that logged in the portal,
    their username,
    their time logged in,
    their time logged out..
    where can i find these information?
    do Portal have already something like this?
    Plz advise..Thanks.

    Thanks Sharmila for answering my question..
    Similar question i want to ask..
    I look at the table, and view it's data...
    Mmm..some i don't recognize...
    Actually, i just want to grep
    1)The UserId of the user who logged in the portal
    2)The time he logged in the portal
    3)the time he log out the portal
    That's all..
    How can i do that?..
    I plan to create one table to store the data, and plan to grab the data by jsp....
    What are the table/function/api that can i use and how?
    Plz advise.
    Thanks

  • How to make all users have the same working environment?

    Hi guys,
    thanks for helping out on this issue.
    Is there a way to set all users on your system to have the same working environment? I believe, as root you can edit the /etc/profile. But when I looked at the file, I was confused. I had no idea where to add stuff because it was a script.
    Please if anyone can help me explain how to customize system wide working environments, I will be very grateful .
    Thank you
    Arrey

    Hi.
    It's not clear what you understand under system wide working environments ?
    /etc/profile it's one possible solution.
    Another way - put custimozed .profile to all users and use customezed */etc/skel* for new users.
    Regards.

  • How to Hide a User?

    I'm trying to create an admin user without having the account showing on the login screen.
    I came across this article:
    How to hide a user account in OS X - Apple Support
    Which says to enter the following into the Terminal (when using Yosemite):
    sudo dscl . create /Users/hiddenuser IsHidden 1
    The problem is after doing this and rebooting the user account is still visible.
    I'm using OS X v10.10.2, and yes I did replace the hiddenuser reference with the user's home directory name I'm trying to hide (the command completed with no errors shown)...
    Anybody know how to do this, and why the article shown doesn't appear to work???

    Bobby T wrote:
    I'm trying to create an admin user without having the account showing on the login screen.
    I came across this article:
    How to hide a user account in OS X - Apple Support
    Anybody know how to do this, and why the article shown doesn't appear to work???
    Did you try other methods described in that article?

  • How to display All User Logged in time & Logout Time?

    How to display All User Logged in time & Logout Time?
    Hi..
    I want to display All user who logged in the portal,
    their username,
    their time logged in,
    their time logged out..
    where can i find these information?
    do Portal have already something like this?
    Plz advise..Thanks.

    The login information is in the wwlog_activity_log. The logout action is only logged when it is explicit. I am using the last user action time for the logout time so I can determine the duration of the visit.

  • How to reset All users and delete their table?

    Hi,
    i want to know How to reset All users and delete their tables with username- system and password-manager.
    thanks

    Hi
    Here delete means truncate or drop?????
    If drop use the following statement to generate the script:
    select 'drop table ' || Owner || '.' || Table_Name || ';' from Dba_tables
    where owner in (<All_the_users_you_want_to_reset>);
    But before firing the above statement extract the DDL's to create all the users and put it in a file and just run that file to re-create the users.
    if its truncate then:
    select 'truncate table ' || Owner || '.' || Table_Name || ';' from Dba_tables
    where owner in (<All_the_users_you_want_to_reset>);
    Hope this Helps
    Regards

  • How to get all users in a given domain ?

    Hi,
    I need to get all user names in a machine given the domain name.
    Is it possible ?
    kaushalya

    kaushalya.cse wrote:
    I'm having a application where it asks for user name with domain.
    After given that i need to check whether given user name is a existing one in that domain before proceeding.What do you mean with "existing". Do you want to know if <username>@<domain> is a valid email adress? If such a user exists within the Windows Domain? Or something else?
    Generally: no, there's no way to verify those things.
    If your goal is to verify the email address then the common solution is to send a mail to that address that contains a code that needs to be entered to proceed. This way the user can only proceed if he can indeed receive mail at that address.

  • How to hide database user name on report

    Hi,
    Whenever I run my report, there is a username "HTMLDB_PUBLIC_USER" displayed on the top of the report.
    Could someone tell how to hide that? If I need to chage the template for that, please guide me through the steps.
    thanks in advance.
    VJ

    Go to your page template body and remove
    &amp;APP_USER.
    variable.
    Denes Kubicek

  • How can I take check box in particular cell of the table in smartforms??

    Hi experts,
       pls tell me how can I take check box in particular cell of the table in smartforms??
    It is not interactive form.
    I hv taken small windows as check boxes.but i think it is not a proper solution....give me another solution...

    Hi,
    first create text for a particular cell.
    In that we have a  text editor  in that text editor we have symbols in include menu.
    whatever the symboll u want to put to ur cell . just assign it.
    please check it. if it helpful reward points.
    regards,
    satish.

  • How to extract all keys (PK, FK) and constraints from the schema?

    hi,
    How to extract all keys (PK, FK) and constraints from the schema?Thanks!

    I have no idea about any tool which only extract the DDL of constraints.
    In oracle 9i or above you can use DBMS_METADATA to extract DDL of a table which also shows contraints defination.
    You can take the tables export without data and use databee tool to extract the DDL.
    www.databee.com

  • I'm selling my early 2011 MBP because I just bought a iMac. Could someone please tell me how to remove all my information from it but leave the OS working. Thanks so much.

    I'm selling my early 2011 MBP because I just bought a iMac. Could someone please tell me how to remove all my information from it but leave the OS working. Thanks so much.

    How do I securely delete data from the machine?
    Erase, formatting, OS X installs on Mac's

Maybe you are looking for