Added support for searching user permissions by ID.
Added function to retrieve IDs of all permissions owned by user.