on 04-25-2006 8:32 AM
hi,
when I try to create a new portal user with
IUserAccount account = accountFact.newUserAccount(
puid.trim(),userMaint.getUniqueID());
I get this error:
com.sap.security.api.UMException: Namespaces, attributes and values must not contain leading or trailing spaces.
how can fix it?
Try the below code snippet instead. Much easier. Just get a user factory. Create the mutable user object and then update the properties of it. When you're done commit() it.
IUserFactory userFactory = UMFactory.getUserFactory();
IUserMaint userMaint = null;
try {
userMaint = userFactory.newUser("your_new_users_id");
Craig
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.