Creates Vingd user (profile & account), links it with the provided
        identities (to be verified later), and sets the delegate-user
        permissions (creator being the delegate). Returns Vingd user's `huid`
        (hashed user id).
        
        Example::
        
            vingd.authorized_create_user(
                identities={"facebook": "12312312", "mail": "user@example.com"},
                primary="facebook",
                permissions=["get.account.balance", "purchase.object"]
            )
        
        If `identities` and `primary` are unspecified, a "zombie" ("headless")
        account is created (i.e. account with no identities associated,
        user-unreachable).
        
        :rtype: ``dict``
        :returns: ``{'huid': <huid>}``
        :raises GeneralException:
        :resource: ``id/objects/<oid>/purchases``
        
        :access: authorized users with ACL flag ``user.create``

def authorized_create_user(self, identities=None, primary=None, permissions=None):
        """Creates Vingd user (profile & account), links it with the provided
        identities (to be verified later), and sets the delegate-user
        permissions (creator being the delegate). Returns Vingd user's `huid`
        (hashed user id).
        
        Example::
        
            vingd.authorized_create_user(
                identities={"facebook": "12312312", "mail": "user@example.com"},
                primary="facebook",
                permissions=["get.account.balance", "purchase.object"]
            )
        
        If `identities` and `primary` are unspecified, a "zombie" ("headless")
        account is created (i.e. account with no identities associated,
        user-unreachable).
        
        :rtype: ``dict``
        :returns: ``{'huid': <huid>}``
        :raises GeneralException:
        :resource: ``id/objects/<oid>/purchases``
        
        :access: authorized users with ACL flag ``user.create``
        """
        return self.request('post', 'id/users/', json.dumps({
            'identities': identities,
            'primary_identity': primary,
            'delegate_permissions': permissions
        }))