Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AddUser call does not seem to create personal volume

Status
Not open for further replies.

madhuusa

IS-IT--Management
Oct 5, 2006
93
US
Team,
I am creating a user via UAPI.Adduser call as below.

status = UAPI.AddUser(\
uapiCtx.fSession,\
userName,\
userPWD,\
UAPI.GROUP,\
defGroup,\
privs,\
data )
After this i set the extended attributes also.

The user gets created correctly. When I try to browse the user's personal volume, it errors out saying as below.

Livelink Error: Error browsing the specified object.
[Could not access a Personal Volume.]

Why is this happening. I suppose in Dtree table User Home entry is not there. But shouldn't the above API call take care of that.

Please help.

Madhu
 
I believe you should be using UAPI.CreateUser. I don't see a call to UAPI.AddUser anywhere in Livelink so you probably are using UAPI.CreateUser. Yes, it does create the home directory. If you are using CreateUser you should check the thread.out files to see if there are any error messages that occur during the user create. Also, check the connect.out logs which show all the database calls being made. They are very good at telling you if there is an error somewhere in the API execution. You should also check the DTREE table to see if the personal workspace was created. It will have the name of the user plus a space plus 'Home'. If it was created there could be a permission problem on the workspace.

In our Document Bulkload module we have the ability to also bulk load new users and groups from a CSV file. We call $LLIAPI.UsersPkg.UserNew to create the user. This is a much better approach than UAPI.CreateUser because it does all the additional setup items such as checking the password for compatability, checking the group requirements, sets the user attributes and adds the audit trail records.
 
Thanks for the suggestion. Directly calling $LLIAPI.UsersPkg.UserNew did the trick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top