Implement serialization of privilege mapping API