web
You’re offline. This is a read only version of the page.
close
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?

I have the same question (0)
  • Suggested answer
    Eiken Profile Picture
    on at

    Hi,

    You use C# code.

    Please refer to the following link.

    Sample: Disable a user | Microsoft Learn

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

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

  • Suggested answer
    PerezAguiar Profile Picture
    Microsoft Employee on at

    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,

  • Swift but Sincere Profile Picture
    82 on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 41 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 39

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans