Jump to content
We've recently updated our Privacy Statement, available here ×

jduran_3

Members
  • Posts

    2
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by jduran_3

  1. Hi,

    I'm using the PHP client for call reports of a JasperServer community.

    Whit the client I can create user, but when I call for put in a role with the examples of this website, i give and error that addRole not Exists!? and cannot add the Role to the creating user.

    $newUser = new User(
        'BI_User',
        'superSTRENGTHpassw0rd',
        'clever@email.com',
        'Business Intelligence User',
        'organization_1',
        'true'
    );
     
    $role = new Role('ROLE_USER', null, 'false');
    $newUser->addRole($role);
     
    try {
       $c->userService()->addOrUpdateUser($newUser);
    } catch (Exception $e) {
       printf('Could not add new user: %s', $e->getMessage());
    }        
     
    The line that fails: $newUser->addRole($role);
     
    I have similar problems to add parameters, but with a  404 error of the server. I can't add parameters with the Client PHP Sample code. I don't know if the version of PHP Client is updated or where is the last version or if the version is the problem.
×
×
  • Create New...