def from_string_reference(ref):
        """
        Given a user key ``reference``, this method returns the user and actual name of the key.

        :param ref: Reference to user key.
        :type ref: ``str``

        :rtype: ``tuple`` of ``str`` and ``str``
        """
        user = UserKeyReference.get_user(ref)
        name = UserKeyReference.get_name(ref)

        return (user, name)

        Given a user key ``reference``, this method returns the user and actual name of the key.

        :param ref: Reference to user key.
        :type ref: ``str``

        :rtype: ``tuple`` of ``str`` and ``str``
        
st2common/st2common/models/system/keyvalue.py