Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to disable users in bulk

(0) ShareShare
ReportReport
Posted on by 82

I figured I could export to Excel the Status(isenabled) field, edit and update.  However, though Status is searchable, I cannot include it as a column to export.  I don't want to do this on the AD/MS365 level but only in the single DEV sandbox environment.

I guess I could go ahead and write an SDK utility but, is there a way to disable in bulk otherwise?

  • Swift but Sincere Profile Picture
    82 on at
    RE: How to disable users in bulk

    Yes, I find the security group thing to be the documented answer.  I don't know when Microsoft instituted this but, it is new to me.  I hesitated to do the more invasive programmatic adjustment.  Seems that if the functionality is not presented to the user, it is poor practice -- and risky -- to hack Microsoft.

  • Suggested answer
    PerezAguiar Profile Picture
    on at
    RE: How to disable users in bulk

    Hey!

    You can assign a security group to an environments. Those users that are NOT members of the security group, will be disabled.  Or if you already have a security group assigned, just remove them from the environment

    Regards,

  • Suggested answer
    Bipin D365 Profile Picture
    28,958 Moderator on at
    RE: How to disable users in bulk

    Hi,

    You can try power automate to disable user records in bulk without written any code.

  • Suggested answer
    Eiken Profile Picture
    on at
    RE: How to disable users in bulk

    Hi,

    You use C# code.

    Please refer to the following link.

    Sample: Disable a user | Microsoft Learn

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,860 Test role Public

#2
Ludwig Reinhard Profile Picture

Ludwig Reinhard Microsoft Employee

#3
Martin Dráb Profile Picture

Martin Dráb 225,155 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans