how to get member of "All users except external users".

tarou chabi 731 Reputation points
2021-03-12T04:47:53.38+00:00

Please teach me of "All users except external users" of Share point online.
With PowerShell or API, Can I get the members of "All users except external users".
And I want to remove the one members of "All users except external users".

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,737 questions
0 comments No comments
{count} votes

Accepted answer
  1. ChelseaWu-MSFT 6,316 Reputation points
    2021-03-12T06:42:58.847+00:00

    Please note that “Everyone except external users” (All users except external users) is a group built into the SharePoint codebase rather than a modifiable object.

    We cannot modify the membership of “Everyone except external users” as it does not actually have memberships.

    Currently, there is no PowerShell script to get only tenant-wide internal users.

    As a workaround, you can get the report for all user (including external users) using the "Export Users" feature via Microsoft 365 admin center > Users > Active users > Ellipsis (More actions) > Export Users. Then you can filter out the internal users in the exported CSV file, for example, by filtering "User principal name" field.

    77038-screenshot-2021-03-12-142958.png

    In addition, if you want to control which users can have access to SharePoint Online, consider using Conditional Access Policies to control user access instead.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    **Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. **


0 additional answers

Sort by: Most helpful