Hi,
does anyone have a working code for adding an user?
i just get :
Fault occurred while processing.
WebService createUser
Moderator: car031
Post
Re: WebService createUser
Hi said,
Which programming language are you using?
Can you tell me the exact version nuomber of LogicalDOC you have installed?
Br
Alex
Which programming language are you using?
Can you tell me the exact version nuomber of LogicalDOC you have installed?
Br
Alex
Post
Re: WebService createUser
Hi,
i'm using LD 7.4.2
i'm using Php (sorry , was assuming it's clear)
i was able to create an user finally the only thing i do not understand it's the groups :
$user['groupIds'] = (object)array(2);
the user is created as an admin and cannot change the group (it's disabled)
i just want to add it to normal users : author, publisher
what is the right way for this?
Rgds
i'm using LD 7.4.2
i'm using Php (sorry , was assuming it's clear)
i was able to create an user finally the only thing i do not understand it's the groups :
$user['groupIds'] = (object)array(2);
the user is created as an admin and cannot change the group (it's disabled)
i just want to add it to normal users : author, publisher
what is the right way for this?
Rgds
Post
Re: WebService createUser
Hi Said,
the ID of Author group is 2, the ID of the group Publisher is -10000
so your code should be:
See also the attached package
the ID of Author group is 2, the ID of the group Publisher is -10000
so your code should be:
Code: Select all
// set the group memberships
$usr ['groupIds'] = [2, -10000]; // Author and Publisher
- Attachments
-
- security-addUser.zip
- create a new user adding it to the specified groups
- (61.2 KiB) Downloaded 694 times
Post
Re: WebService createUser
Thanks
it works
but there is a bug in the declaration, the code should be :
$usr['groupIds'] = array(2,-10000);
it works
but there is a bug in the declaration, the code should be :
$usr['groupIds'] = array(2,-10000);
Who is online
Users browsing this forum: No registered users and 4 guests