<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Manage users of several applications by a single admin user</title><link>https://answers.axonivy.com/questions/220/manage-users-of-several-applications-by-a-single-admin-user</link><description>&lt;p&gt;xpert.ivy server:
Request a task list, manage substitution, absences and so one is already limited to the appropriate WebApp the requesting user is defined in. &lt;/p&gt;
&lt;p&gt;Is there a possibility to request tasks, manage absences etc. for all WebApps by a single admin user (defined in a WebApp) which has access to all the other WebApps on the same system/server?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/220/manage-users-of-several-applications-by-a-single-admin-user" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 23 Dec 2013 08:52:51 -0500</lastBuildDate><item><title>Comment by Stefan on Reto Weiss's answer</title><link>https://answers.axonivy.com/questions/220/manage-users-of-several-applications-by-a-single-admin-user#225</link><description>&lt;p&gt;Thx, your answer is very helpful
Rgds,
Stefan&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stefan</dc:creator><pubDate>Mon, 23 Dec 2013 08:52:51 -0500</pubDate><guid>https://answers.axonivy.com/questions/220/manage-users-of-several-applications-by-a-single-admin-user#225</guid></item><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/220/manage-users-of-several-applications-by-a-single-admin-user/224</link><description>&lt;p&gt;It is possible but not with a public API. &lt;/p&gt;
&lt;p&gt;However, a better solutions may be to have only one application where you deploy multiple different projects (a.k. web application) into. Use roles so that only users that are allowed to work on a web application can do so.&lt;/p&gt;
&lt;p&gt;If this is not possible, you can try the following:&lt;/p&gt;
&lt;p&gt;To access all applications running on a server you can use the following non public API (it may or will change in future without any notice ...):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;import java.util.List;
import java.util.concurrent.Callable;

import ch.ivyteam.ivy.application.ApplicationConfigurationManagerNavigationUtil;
import ch.ivyteam.ivy.application.IApplication;
import ch.ivyteam.ivy.application.IApplicationConfigurationManager;
import ch.ivyteam.ivy.environment.Ivy;
import ch.ivyteam.ivy.security.SecurityManagerFactory;


public class AccessToAllApplications 
{
    public List&amp;lt;IApplication&amp;gt; getAllApplications() throws Exception
    {
        return SecurityManagerFactory.getSecurityManager().executeAsSystem(new Callable&amp;lt;List&amp;lt;IApplication&amp;gt;&amp;gt;(){

            @Override
            public List&amp;lt;IApplication&amp;gt; call() throws Exception 
            {
                return getAllApplicationsAsSystem();
            }});
    }

    protected List&amp;lt;IApplication&amp;gt; getAllApplicationsAsSystem() 
    {
        IApplicationConfigurationManager appConfigManager = ApplicationConfigurationManagerNavigationUtil.getApplicationConfigurationManager(Ivy.request().getApplication());
        return appConfigManager.getApplications();
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The &lt;code&gt;executeAsSystem&lt;/code&gt; method is used to turn off security. If you use it then security has to be ensured by the process developer. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Fri, 20 Dec 2013 17:46:24 -0500</pubDate><guid>https://answers.axonivy.com/questions/220/manage-users-of-several-applications-by-a-single-admin-user/224</guid></item><item><title>Comment by Stefan on Stefan's question</title><link>https://answers.axonivy.com/questions/220/manage-users-of-several-applications-by-a-single-admin-user#223</link><description>&lt;p&gt;Sorry: This belongs to xpert.ivy 5.x. &lt;/p&gt;
&lt;p&gt;With the currently available API, it seems not possible to manage an absence of a person/user applicationwide (or outside a currently session i'm logged in) (the user exists normally only once in a company, so an absence should be valid for all applications this user is created in). And for an admin, it would be nice if there is a possibility to manage also substitutions for users in different applications.
I can manage that by accessing the ivy database directly, but I didn't found any way to do that over the API.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stefan</dc:creator><pubDate>Fri, 20 Dec 2013 15:28:23 -0500</pubDate><guid>https://answers.axonivy.com/questions/220/manage-users-of-several-applications-by-a-single-admin-user#223</guid></item><item><title>Comment by Reto Weiss on Stefan's question</title><link>https://answers.axonivy.com/questions/220/manage-users-of-several-applications-by-a-single-admin-user#221</link><description>&lt;p&gt;Does this question belong to Xpert.ivy 3.9 or 4/5.x?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Fri, 20 Dec 2013 14:29:55 -0500</pubDate><guid>https://answers.axonivy.com/questions/220/manage-users-of-several-applications-by-a-single-admin-user#221</guid></item></channel></rss>