Login service group does not match session group.

0
I am encountering an error while trying to log in to Teamcenter from the Mendix app.   Initially, I logged in using the group 'DBA' and the role 'DBA,' and the login was successful. However, after logging out, I attempted to log in again with the same user but switched the group to 'Engineering' and the role to 'Designer.' This time, I received the error message: 'Login service group does not match session group.'     Thank you for your assistance.
asked
2 answers
0

Hi Akash,

 

Try to raise internal support ticket with in Siemens ServiceNow for TeamCenter Application issues. 

Team needs to check logic for this constraint "Login service group does not match session group". 

 

I found something from internet about team center application. 

https://community.sw.siemens.com/s/question/0D54O00007lVu60SAC/i-want-to-change-a-user-group-of-an-user-with-soa-the-user-has-privileges-in-other-groups-then-if-i-create-a-session-in-a-group-and-i-want-to-change-to-other-group-i-obtain-the-follow-message-login-service-group-does-not-match-session-group

 

try

{

resp = sessionService.login(credentials[0], credentials[1], credentials[2], credentials[3], "en_US", credentials[4]);

}

catch (InvalidCredentialsException ise) {

 

if(ise.getMessage().equalsIgnoreCase("Login service group does not match session group."))

resp = sessionService.login(credentials[0], credentials[1], "", "", "en_US", credentials[4]);

else throw ise;

}

 

if (!ServiceDataError(resp.serviceData))

{

LoggedInUserObject = resp.user;

 

String LoggedInGroup = sessionService.getSessionGroupMember().groupMember.get_group().get_full_name();

 

String LoggedInRole = sessionService.getSessionGroupMember().groupMember.get_role().get_role_name();

 

if (!credentials[2].equalsIgnoreCase(LoggedInGroup) || !credentials[3].equalsIgnoreCase(LoggedInRole))

{

GroupMember SwitchGroupMember = findGroupMember(credentials[2], credentials[3], credentials[0]);

 

if(SwitchGroupMember != null)

{

sessionService.setSessionGroupMember(SwitchGroupMember);

}

else

{

throw new LoginException("User " + credentials[0] + " is not a member of group " + credentials[2] + " and role " + credentials[3]);

}

}

 

return LoggedInUserObject;

}

 

Thanks & Regards,

Manikandan K

answered
0

Hi did you ever solve this issue?

answered