Is there a way we can mass disable the users in ShareFile.

  • 1
  • Question
  • Updated 3 weeks ago
Is there a way we can mass disable the users in ShareFile. We nearly have 1000’s of users as clients who have not been using this and need to disable them. Can we set an auto disable of accounts after number of days of inactivity.
Photo of Ashutosh Tiwari

Ashutosh Tiwari

  • 1 Post
  • 0 Reply Likes

Posted 4 weeks ago

  • 1
Photo of Dale Smith

Dale Smith, Software Engineer

  • 166 Posts
  • 21 Reply Likes
Hi Ashutosh,

Unfortunately, we do not have a bulk disable endpoint available. We do however currently have a bulk delete of client users:

POST   https://account.sf-api.com/sf/v3/Users/Clients/BulkDelete


{
    UserIds: ["id1", "id2"]
}

I also know that we have some stories in the backlog to allow for better management of client users for admins, which may prompt us to create some new bulk endpoints. I will make our product management aware of your interest in these features. 

Thanks,
Dale
Photo of Keith Rachunok

Keith Rachunok

  • 3 Posts
  • 0 Reply Likes
Not bulk, but I've written scripts to disable all clients by getting all Account/Clients and setting the Security  IsDisabled.

$sfuser = Send-SfRequest -Client $sfClient -Method PATCH -Entity Users -Id $User.Id -Expand Security -BodyText '{"Security":{"IsDisabled":true}}'