async def remove_user_from_collection(
            id: UUID = Path(
                ..., description="The unique identifier of the collection"
            ),
            user_id: UUID = Path(
                ..., description="The unique identifier of the user to remove"
            ),
            auth_user=Depends(self.providers.auth.auth_wrapper()),
        ) -> WrappedBooleanResponse:
            """Remove a user from a collection.

            This endpoint revokes a user's access to a specific collection. The
            authenticated user must have admin permissions for the collection
            to remove users.
            """
            await authorize_collection_action(
                auth_user, id, CollectionAction.MANAGE_USERS, self.services
            )

            result = (
                await self.services.management.remove_user_from_collection(
                    user_id, id
                )
            )
            return GenericBooleanResponse(success=True)  # type: ignore
Remove a user from a collection.

            This endpoint revokes a user's access to a specific collection. The
            authenticated user must have admin permissions for the collection
            to remove users.
            
py/core/main/api/v3/collections_router.py