zeekay
e48704c976
users: rule who makes an org admin, and make a revoke take effect now
...
POST /v1/iam/users and PUT /v1/iam/users/{owner}/{name} answered 200 and
dropped user.isAdmin: the field was read from the calling code only, so a
SuperAdmin could not make hanzo/denis an admin and nothing said so.
One rule, users.Admin, now decides every change to an org-admin role: the
user create and update, SCIM, an admin membership, and an invitation that
carries the role. A SuperAdmin moves it anywhere; an org's admin moves it on
the others of a customer org; only a SuperAdmin makes an admin of a brand
(policy.IsPlatformOrg) or touches the admin org; nobody raises their own; the
last admin stays (409) unless a SuperAdmin takes them; applications, machines
and members are refused (403). The request is read for presence, so leaving
isAdmin out keeps it and a full-row write cannot demote by omission.
A revoke, a removed membership, an upsert lowering and a deleted account call
store.Void: User.Epoch moves to now, the account's token rows and sessions
are deleted, and verifyBearer refuses a token with iat <= epoch.
Invitations carry a role (member or admin), written only by who may grant it
and applied on signup and accept. GET /v1/iam/users takes isAdmin=true. Every
grant, revoke, role invitation, removal and void is an audit row under the
org, with actor, target, from, to, reason and request id.
Claude-Session: https://claude.ai/code/session_016DKtyuzxU43Gsc6Pm9vKTF
2026-11-02 12:07:57 -08:00
..
2026-09-27 09:00:35 -07:00
2026-11-02 12:07:57 -08:00
2026-10-17 21:27:31 -07:00
2026-08-15 20:55:21 -07:00
2026-10-17 21:27:31 -07:00
2026-10-17 19:45:43 -07:00
2026-10-26 15:50:37 -07:00
2026-10-26 15:45:39 -07:00
2026-08-16 13:19:15 -07:00
2026-10-17 19:45:43 -07:00
2026-10-24 21:15:26 -07:00
2026-09-08 10:23:37 -07:00
2026-09-08 10:23:37 -07:00
2026-09-08 10:23:37 -07:00
2026-08-21 06:56:48 -07:00
2026-08-07 22:43:30 -07:00
2026-10-16 03:09:01 -07:00
2026-09-24 01:19:54 -07:00
2026-09-26 10:51:01 -07:00
2026-10-17 19:45:43 -07:00
2026-10-17 21:27:31 -07:00
2026-08-04 01:09:51 -07:00
2026-08-04 01:09:51 -07:00
2026-08-07 22:43:30 -07:00
2026-10-17 19:45:43 -07:00
2026-10-17 19:45:43 -07:00
2026-10-09 09:54:46 -07:00
2026-10-17 19:45:43 -07:00
2026-08-07 22:43:30 -07:00
2026-10-17 19:45:43 -07:00
2026-10-17 19:45:43 -07:00
2026-10-17 19:45:43 -07:00
2026-10-30 08:00:37 -07:00
2026-10-21 23:25:24 -07:00
2026-10-21 22:36:58 -07:00
2026-10-17 19:45:43 -07:00
2026-10-18 21:51:33 -07:00
2026-10-26 02:32:23 -07:00
2026-10-21 23:27:08 -07:00
2026-10-24 21:15:26 -07:00
2026-11-01 23:51:19 -08:00
2026-11-01 23:51:19 -08:00
2026-10-26 02:32:23 -07:00
2026-11-01 23:51:19 -08:00
2026-10-18 21:51:33 -07:00
2026-11-01 23:51:19 -08:00
2026-09-23 22:26:23 -07:00
2026-11-01 23:51:19 -08:00
2026-08-07 22:51:19 -07:00
2026-11-01 23:51:19 -08:00
2026-11-01 23:51:19 -08:00
2026-09-27 19:24:51 -07:00
2026-09-04 00:58:41 -07:00
2026-10-17 19:45:43 -07:00
2026-10-20 12:04:26 -04:00
2026-11-01 23:51:19 -08:00
2026-10-26 15:45:39 -07:00
2026-10-04 10:59:04 -07:00
2026-10-17 19:45:43 -07:00
2026-10-21 22:36:58 -07:00
2026-09-08 10:23:37 -07:00
2026-10-26 15:50:37 -07:00
2026-08-04 01:09:51 -07:00
2026-10-17 21:27:31 -07:00
2026-10-17 19:45:43 -07:00
2026-08-04 01:09:51 -07:00
2026-10-02 13:55:19 -07:00
2026-10-26 16:17:31 -07:00
2026-10-06 20:08:40 -07:00
2026-10-06 20:08:40 -07:00
2026-10-06 20:08:40 -07:00
2026-09-08 10:23:37 -07:00
2026-09-23 12:48:59 -07:00
2026-10-06 20:08:40 -07:00
2026-11-02 12:07:57 -08:00
2026-10-17 19:45:43 -07:00
2026-10-17 19:45:43 -07:00
2026-10-17 04:07:47 -07:00
2026-10-17 04:07:47 -07:00
2026-09-08 10:23:37 -07:00
2026-10-17 19:45:43 -07:00
2026-10-17 19:45:43 -07:00
2026-08-21 08:40:10 -07:00
2026-10-09 05:31:35 -07:00
2026-09-01 08:53:00 -07:00
2026-10-17 04:07:47 -07:00
2026-10-06 20:08:40 -07:00
2026-08-04 01:09:51 -07:00
2026-10-17 19:45:43 -07:00
2026-10-20 14:56:11 -04:00
2026-09-27 19:24:51 -07:00
2026-09-23 19:51:34 -07:00
2026-09-17 05:51:15 -07:00
2026-08-04 01:09:51 -07:00
2026-08-23 15:18:35 -07:00
2026-08-14 10:32:37 -07:00
2026-10-17 19:45:43 -07:00
2026-08-04 01:09:51 -07:00
2026-08-14 10:32:37 -07:00
2026-10-26 15:45:39 -07:00
2026-10-21 14:52:36 -04:00
2026-10-17 19:45:43 -07:00
2026-10-21 14:52:36 -04:00
2026-08-27 12:15:36 -07:00
2026-09-24 01:19:54 -07:00
2026-09-24 01:19:54 -07:00
2026-09-30 08:07:00 -07:00
2026-10-06 20:08:40 -07:00
2026-09-24 01:19:54 -07:00
2026-10-16 03:09:01 -07:00
2026-09-08 10:23:37 -07:00
2026-09-08 10:23:37 -07:00
2026-10-14 23:38:53 -07:00
2026-09-27 19:24:51 -07:00
2026-10-14 23:38:53 -07:00
2026-09-06 13:14:14 -07:00
2026-09-08 10:23:37 -07:00
2026-08-04 01:09:51 -07:00
2026-08-14 22:29:05 -07:00
2026-10-26 03:49:20 -07:00
2026-10-30 08:00:37 -07:00
2026-10-17 19:45:43 -07:00
2026-10-17 19:45:43 -07:00
2026-10-17 19:45:43 -07:00
2026-10-16 13:50:55 -07:00
2026-10-17 19:45:43 -07:00
2026-09-08 10:23:37 -07:00
2026-09-24 01:19:54 -07:00
2026-09-08 10:23:37 -07:00
2026-08-13 13:33:56 -07:00
2026-09-08 10:23:37 -07:00
2026-10-17 19:45:43 -07:00
2026-10-17 21:27:31 -07:00
2026-08-04 01:09:51 -07:00
2026-08-04 01:09:51 -07:00
2026-09-30 08:07:00 -07:00
2026-10-17 19:45:43 -07:00
2026-10-17 19:45:43 -07:00
2026-09-15 06:31:23 -07:00
2026-10-16 13:50:55 -07:00
2026-10-16 13:50:55 -07:00
2026-10-16 13:50:55 -07:00
2026-11-02 12:07:57 -08:00
2026-09-08 10:23:37 -07:00
2026-08-21 06:59:23 -07:00
2026-09-23 17:51:17 -07:00
2026-10-26 15:45:39 -07:00
2026-10-26 15:45:39 -07:00
2026-08-04 01:09:51 -07:00
2026-08-23 15:18:35 -07:00
2026-10-06 20:08:40 -07:00
2026-08-21 06:56:46 -07:00
2026-08-04 22:49:50 -07:00
2026-09-30 09:36:05 -07:00
2026-10-04 10:59:04 -07:00
2026-11-02 12:07:57 -08:00
2026-10-01 14:27:26 -07:00
2026-09-27 19:24:51 -07:00
2026-08-23 15:18:35 -07:00
2026-10-01 13:43:20 -07:00
2026-11-02 12:07:57 -08:00
2026-10-02 16:28:34 -07:00
2026-09-08 10:23:37 -07:00
2026-10-17 19:45:43 -07:00
2026-09-03 20:40:19 -07:00
2026-08-04 01:09:51 -07:00
2026-10-17 19:45:43 -07:00
2026-09-08 10:23:37 -07:00
2026-10-17 19:45:43 -07:00
2026-09-24 01:19:54 -07:00
2026-09-01 08:53:00 -07:00
2026-09-24 01:19:54 -07:00
2026-10-17 19:45:43 -07:00
2026-08-04 01:09:51 -07:00
2026-08-04 23:45:43 -07:00
2026-08-04 23:45:43 -07:00
2026-10-17 04:07:47 -07:00
2026-08-16 17:32:08 -07:00
2026-10-17 19:45:43 -07:00
2026-09-08 10:23:37 -07:00
2026-11-02 12:07:57 -08:00
2026-09-04 00:58:41 -07:00
2026-10-17 19:45:43 -07:00
2026-10-17 21:27:31 -07:00
2026-10-06 20:08:40 -07:00
2026-10-22 11:45:43 -07:00
2026-10-22 11:45:43 -07:00
2026-10-26 16:26:51 -07:00