(scim) interop grist

This commit is contained in:
Marie PUPO JEAMMET
2025-11-27 18:03:41 +01:00
parent 3a2b5a6428
commit 8a16a5ac05
2 changed files with 3 additions and 10 deletions
+1
View File
@@ -8,6 +8,7 @@ and this project adheres to
## [Unreleased]
- ✨(scim) interop with grist
- 🛂(permissions) return 404 to users with no access to domain #985
- ✨(aliases) can create, list and delete aliases #974
+2 -10
View File
@@ -33,7 +33,7 @@ class SCIMClient:
"op": "add",
"path": "members",
"value": [
{"value": str(user.id), "email": user.email, "type": "User"}
{"value": user.sub, "display": user.email, "type": "User"}
],
}
],
@@ -53,15 +53,7 @@ class SCIMClient:
"""Remove a user from a group by its ID or email."""
payload = {
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
"Operations": [
{
"op": "remove",
"path": "members",
"value": [
{"value": str(user.id), "email": user.email, "type": "User"}
],
}
],
"Operations": [{"op": "remove", "path": f'members[value eq "{user.sub}"]'}],
}
response = session.patch(
webhook.url,