There is no such endpoint, because you can’t delete a user. You can block it (right in the next version, I will add this feature), user.status = DG.USER_STATUS.BLOCKED
Hi @eyewing - complete deletion of users is not implemented yet (perhaps in the next version), but as Alex said you can disable the account.
To disable a user account, login as administrator, navigate to Browse | Platform | Users, right-click on the user, and select “Block”. This will prevent user from logging in and using the platform, and this user
will not count towards the license.
All assets that the user has created will continue to be available in the system.
Administrators can share them with others if necessary.
Dear Datagrok team,
Hi, I would like to ask a question about how to get a list of users who are not bloked status through dapi.
For example, I wrote sample code snipet below. If possible I would like to have only unblocked users information. I am sorry for bothing you but it would be very helpful if you share a tip to do that.
To get a list of users who are not blocked, you can filter users by status = "active" using the dapi.users endpoint. Here’s how you can do it specifically for the “All Users” group:
await grok.dapi.users
.filter(`status = "active" and group.parents.id = "${DG.Group.allUsers.id}"`)
.list();
Please note: at the moment, this approach relies on group.parents, which isn’t directly exposed in the JavaScript API. We’re aware of this limitation and plan to make it possible to use standard group.memberships instead — making this type of query more intuitive and officially supported.