In the spirit of uniformity this should return a "profile" object containing the profile's name as "label" and optionally the lockmode if requested by the user.