code: def post(method, hmc, uri, uri_parms, body, logon_required,
               wait_for_completion):
          
          assert wait_for_completion is True  # synchronous operation
          try:
              console = hmc.consoles.lookup_by_oid(None)
          except KeyError:
              raise InvalidResourceError(method, uri)
          check_required_fields(method, uri, body, ['name'])
          properties = copy.deepcopy(body)
          if 'type' in properties:
              raise BadRequestError(
                  method, uri, reason=6,
                  message="Type specified when creating a user role: {!r}".
                  format(properties['type']))
          properties['type'] = 'user-defined'
          new_user_role = console.user_roles.add(properties)
          return {'object-uri': new_user_role.uri}
docs: Operation: Create User Role.