Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
scim: Make "id" a string in our responses.
Mateusz Mandera3052d0cca714
diff --git a/zerver/lib/scim.py b/zerver/lib/scim.pyindex d5e81e1064a..232073a865d 100644--- a/zerver/lib/scim.py+++ b/zerver/lib/scim.py@@ -102,7 +102,7 @@ class ZulipSCIMUser(SCIMUser):return {"schemas": [scim_constants.SchemaURI.USER],- "id": self.obj.id,+ "id": str(self.obj.id),"userName": self.obj.delivery_email,"name": name,"displayName": self.display_name,diff --git a/zerver/tests/test_scim.py b/zerver/tests/test_scim.pyindex aec99bb9300..2540c3aa31c 100644--- a/zerver/tests/test_scim.py+++ b/zerver/tests/test_scim.py@@ -34,7 +34,7 @@ class SCIMTestCase(ZulipTestCase):def generate_user_schema(self, user_profile: UserProfile) -> dict[str, Any]:return {"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],- "id": user_profile.id,+ "id": str(user_profile.id),"userName": user_profile.delivery_email,"name": {"formatted": user_profile.full_name},"displayName": user_profile.full_name,