Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

User can not register to RAM

We run the following codes to add user to RAM:
RAMUser user = session.getUser(email);
user.setName(name);
user.setEmail(email);

session.put(user, new RAMStatusMonitor());

The above codes run successfully, then we use following codes to check if user is registered:
RAMUser user = session.getUser(email);
if(user.isRegistered()) {
...
}

The check of user.isRegistered() return true. But the problem is this user still can not login to RAM. When he visit RAM, it always ask him to register RAM. The user must click "register" button to visit RAM.

Is this check for registered user not correct? Thanks.

0 votes



5 answers

Permanent link
Hi,

Registering user does not prevent the screen from coming up. The first
time the user logs in that screen always shows up to allow the user to
configure their preferences.


--
Rich Kulp
Rational Asset Manager developer

0 votes


Permanent link
On 3/3/2011 1:33 PM, Rich Kulp wrote:
One more thing:

RAMUser user =
session.getUser(email);
user.setName(name);
user.setEmail(email);

session.put(user, new RAMStatusMonitor());


will only work correctly if email is your Userid field. This is
different than login field. USERID is the field in LDAP that is
configured to be unique identification of the user. LOGINID is the field
in LDAP that the user uses to login. They are not necessarily the same
fields.

Is your system configured so that email is the USERID.

If they were configured differently then your code would create a user
that has a userid of email, but when the user actually logs in they
would create a userid of their userid, not their email.

If they were configured to be the same, then there isn't a problem.

--
Rich Kulp
Rational Asset Manager developer

0 votes


Permanent link
Hi Rich,

When we do the set email to user, this email id is the same one which registered in the LDAP, so I think it should be work well. But after the code run well, it still show us the page to register this user, this seems strange for me.

Thanks.

0 votes


Permanent link
Hi,

Like I said this page ALWAYS shows up the first time the user ever logs
in. It is there to allow the user to customize their preferences.

All programmatic registration does is to create the appropriate user
entry in the database.

--
Rich Kulp
Rational Asset Manager developer

0 votes


Permanent link
Hi Rich,

Thank you for your information, we will check it.
Hi,

Like I said this page ALWAYS shows up the first time the user ever logs
in. It is there to allow the user to customize their preferences.

All programmatic registration does is to create the appropriate user
entry in the database.

--
Rich Kulp
Rational Asset Manager developer

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Mar 03 '11, 2:23 a.m.

Question was seen: 7,329 times

Last updated: Mar 03 '11, 2:23 a.m.

Confirmation Cancel Confirm