Update user field via api

12 views
Skip to first unread message

Hema

unread,
Nov 11, 2019, 9:55:40 AM11/11/19
to Review Board Community
Is there a way to prevent marking GONE/LEFT users as reviewers? We thought of making the user field "is_active" as False using API, whenever a user leaves the organization by referring to another site. But it seems "UserResource" doesn't have the method update, defined. Is there a solution for this?

Regards,
Hema.

Christian Hammond

unread,
Nov 12, 2019, 5:47:45 PM11/12/19
to revie...@googlegroups.com
Hi Hema,

The upcoming 3.0.16 release is gaining the ability to set the active flag to False via the API. That will do exactly what you need. We're probably a couple weeks out though, as we're kinda swamped with some time-sensitive work, but if you urgently need this now, you can write some Python code that sets the flag on the appropriate User model, or SQL that sets it directly in the database.

Christian

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/92580ca8-1356-473a-9f58-086c1c4acbc0%40googlegroups.com.


--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board
Reply all
Reply to author
Forward
0 new messages