<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Change application environment on login</title><link>https://answers.axonivy.com/questions/235/change-application-environment-on-login</link><description>&lt;p&gt;Hi there&lt;/p&gt;
&lt;p&gt;is it possible to change the used environment for an user by api?
Means we implement some logic in the login process which detects the postfix of a user.
If it matches _test we should use the test environment if not we use the default which is set in application configuration.&lt;/p&gt;
&lt;p&gt;Thanks for the fish, 
Sven&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/235/change-application-environment-on-login" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 08 Jan 2014 17:36:21 -0500</lastBuildDate><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/235/change-application-environment-on-login/236</link><description>&lt;pre&gt;&lt;code&gt;if (ivy.session.getSessionUserName().endsWith("_test"))
{
    ivy.session.setActiveEnvironment("Test");
}
else
{
    ivy.session.setActiveEnvironment(null);
}
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Wed, 08 Jan 2014 17:36:21 -0500</pubDate><guid>https://answers.axonivy.com/questions/235/change-application-environment-on-login/236</guid></item></channel></rss>