<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.os4x.com/index.php?action=history&amp;feed=atom&amp;title=OS4X_Enterprise_user_import_via_Microsoft_Active_Directory</id>
	<title>OS4X Enterprise user import via Microsoft Active Directory - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.os4x.com/index.php?action=history&amp;feed=atom&amp;title=OS4X_Enterprise_user_import_via_Microsoft_Active_Directory"/>
	<link rel="alternate" type="text/html" href="https://wiki.os4x.com/index.php?title=OS4X_Enterprise_user_import_via_Microsoft_Active_Directory&amp;action=history"/>
	<updated>2026-04-07T11:39:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://wiki.os4x.com/index.php?title=OS4X_Enterprise_user_import_via_Microsoft_Active_Directory&amp;diff=3969&amp;oldid=prev</id>
		<title>Admin: /* Import of user data via XML */</title>
		<link rel="alternate" type="text/html" href="https://wiki.os4x.com/index.php?title=OS4X_Enterprise_user_import_via_Microsoft_Active_Directory&amp;diff=3969&amp;oldid=prev"/>
		<updated>2025-09-26T06:06:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Import of user data via XML&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:06, 26 September 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l52&quot; &gt;Line 52:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 52:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Import of user data via XML =&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Import of user data via XML =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Use the OS4Xapi in command line mode:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Use the OS4Xapi in command line mode&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. Examples&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  php /var/www/html/os4x/os4xapi/index.php admin usersync &amp;quot;file=/opt/os4x/tmp/AD-user-export.xml&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  php /var/www/html/os4x/os4xapi/index.php admin usersync &amp;quot;file=/opt/os4x/tmp/AD-user-export.xml&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; php /var/www/html/os4x/os4xapi/index.php admin usersync &amp;quot;file=/opt/os4x/tmp/AD-user-export.xml&amp;quot; &amp;quot;portalIdx=3&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Parameters ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Parameters ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.os4x.com/index.php?title=OS4X_Enterprise_user_import_via_Microsoft_Active_Directory&amp;diff=3968&amp;oldid=prev</id>
		<title>Admin: /* Parameters */</title>
		<link rel="alternate" type="text/html" href="https://wiki.os4x.com/index.php?title=OS4X_Enterprise_user_import_via_Microsoft_Active_Directory&amp;diff=3968&amp;oldid=prev"/>
		<updated>2025-09-25T12:08:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Parameters&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:08, 25 September 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l58&quot; &gt;Line 58:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 58:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;lt;code&amp;gt;file&amp;lt;/code&amp;gt;: Path of the user XML file (either absolute or available from relative path).&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;lt;code&amp;gt;file&amp;lt;/code&amp;gt;: Path of the user XML file (either absolute or available from relative path).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;lt;code&amp;gt;disableUnavailable&amp;lt;/code&amp;gt;: &amp;quot;&amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;&amp;quot; or (default) &amp;quot;&amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;&amp;quot;: Deactivate all users with a UUID in the reference field of the own company. Manually created users are not affected.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;lt;code&amp;gt;disableUnavailable&amp;lt;/code&amp;gt;: &amp;quot;&amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;&amp;quot; or (default) &amp;quot;&amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;&amp;quot;: Deactivate all users with a UUID in the reference field of the own company. Manually created users are not affected.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*&amp;lt;code&amp;gt;portalIdx&amp;lt;/code&amp;gt;: primary key value of a configured OS4X Portal the imported user(s) should be assigned to. Sets authentication automatically to &amp;quot;internal&amp;quot; instead of &amp;quot;PAM&amp;quot;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Logging ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Logging ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;All logs are being added to the configured [[OS4X_Core_configuration#Absolute_path_to_logfile_of_OS4X_API_.28CLI.29|OS4Xapi CLI logfile]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;All logs are being added to the configured [[OS4X_Core_configuration#Absolute_path_to_logfile_of_OS4X_API_.28CLI.29|OS4Xapi CLI logfile]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.os4x.com/index.php?title=OS4X_Enterprise_user_import_via_Microsoft_Active_Directory&amp;diff=3818&amp;oldid=prev</id>
		<title>Admin: /* PowerShell requirements */</title>
		<link rel="alternate" type="text/html" href="https://wiki.os4x.com/index.php?title=OS4X_Enterprise_user_import_via_Microsoft_Active_Directory&amp;diff=3818&amp;oldid=prev"/>
		<updated>2024-10-24T07:30:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;PowerShell requirements&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:30, 24 October 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot; &gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  pwsh -Command &amp;#039;Install-Module -Name PSWSMan&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  pwsh -Command &amp;#039;Install-Module -Name PSWSMan&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  pwsh -Command &amp;#039;Install-WSMan&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  pwsh -Command &amp;#039;Install-WSMan&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== OS4X ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== OS4X ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.os4x.com/index.php?title=OS4X_Enterprise_user_import_via_Microsoft_Active_Directory&amp;diff=3817&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;= Active Directory user synchronization = OS4X offers a script to export user information from the connected Microsoft Active Directory and export the data into an XML file wh...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.os4x.com/index.php?title=OS4X_Enterprise_user_import_via_Microsoft_Active_Directory&amp;diff=3817&amp;oldid=prev"/>
		<updated>2024-10-24T07:29:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Active Directory user synchronization = OS4X offers a script to export user information from the connected Microsoft Active Directory and export the data into an XML file wh...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Active Directory user synchronization =&lt;br /&gt;
OS4X offers a script to export user information from the connected Microsoft Active Directory and export the data into an XML file which is then supported by the user import function of OS4Xapi.&lt;br /&gt;
&lt;br /&gt;
The functionality consists of two partners:&lt;br /&gt;
#Export of user data from AD, written to an XML file.&lt;br /&gt;
#Import of the given XML file via OS4Xapi.&lt;br /&gt;
&lt;br /&gt;
You can skip the export of the AD data for crafting an own user data export.&lt;br /&gt;
&lt;br /&gt;
= Requirements =&lt;br /&gt;
== PowerShell requirements ==&lt;br /&gt;
In order to be able to run unsigned PowerShell scripts from OS4X, you must change the execution policy in a PowerShell started in administrative mode:&lt;br /&gt;
  Set-ExecutionPolicy -ExecutionPolicy Unrestricted&lt;br /&gt;
&lt;br /&gt;
The module for Active Directory is required for execution of the script. If not installed, you can install it in an administrative PowerShell:&lt;br /&gt;
 Get-WindowsCapability -Online | Where-Object {$_.Name -like &amp;quot;*ActiveDirectory.DS-LDS*&amp;quot;} | Add-WindowsCapability -Online&lt;br /&gt;
&lt;br /&gt;
On Linux, it may be required to install the AD module. For this, you must be able to download either directly or via HTTPS proxy:&lt;br /&gt;
 pwsh -Command &amp;#039;Install-Module -Name PSWSMan&amp;#039;&lt;br /&gt;
 pwsh -Command &amp;#039;Install-WSMan&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== OS4X ==&lt;br /&gt;
*The server running the import script must have PHP installed for CLI.&lt;br /&gt;
*A defined &amp;quot;[[OS4X_Core_configuration#define_own_company|own company]]&amp;quot; must be set.&lt;br /&gt;
&lt;br /&gt;
= Export of AD data =&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
The header of the PowerShell script contains variables to be changed. These are:&lt;br /&gt;
*&amp;lt;code&amp;gt;$GroupNames&amp;lt;/code&amp;gt;: A list of group for export. All members of these groups are exported.&lt;br /&gt;
*&amp;lt;code&amp;gt;$OutputFilename&amp;lt;/code&amp;gt;: Absolute path to the output XML file.&lt;br /&gt;
*&amp;lt;code&amp;gt;$Debug&amp;lt;/code&amp;gt;: Write more debug output to the console.&lt;br /&gt;
&lt;br /&gt;
In case of specialities in Active Directory schema, you can define with the following variables which field matches the required OS4X field. The defaults are (names are self-explaining):&lt;br /&gt;
*&amp;lt;code&amp;gt;$OS4X_Firstname = &amp;quot;GivenName&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;$OS4X_Lastname = &amp;quot;Surname&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;$OS4X_Telephone = &amp;quot;telephoneNumber&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;$OS4X_Email = &amp;quot;mail&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;$OS4X_Username = &amp;quot;SamAccountName&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;$OS4X_Street = &amp;quot;StreetAddress&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;$OS4X_ZIPCode = &amp;quot;PostalCode&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;$OS4X_City = &amp;quot;l&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;$OS4X_Department = &amp;quot;Department&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;$OS4X_CountryAlpha2 = &amp;quot;Country&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;$OS4X_ObjectGUID = &amp;quot;objectGUID&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The country field referred by &amp;lt;code&amp;gt;OS4X_CountryAlpha2&amp;lt;/code&amp;gt; follows the [https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 ISO 3166-1 alpha-2] definition of countries and is supported by at least Windows Server 2022 AD schema.&lt;br /&gt;
&lt;br /&gt;
== Execute command ==&lt;br /&gt;
On a client connected to the target AD, execute the PowerShell script as a user who is allowed to crawl the AD data:&lt;br /&gt;
 powershell -File &amp;quot;\\tsclient\Active Directory\OS4X AD-Export.ps1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
= Import of user data via XML =&lt;br /&gt;
Use the OS4Xapi in command line mode:&lt;br /&gt;
 php /var/www/html/os4x/os4xapi/index.php admin usersync &amp;quot;file=/opt/os4x/tmp/AD-user-export.xml&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
*&amp;lt;code&amp;gt;file&amp;lt;/code&amp;gt;: Path of the user XML file (either absolute or available from relative path).&lt;br /&gt;
*&amp;lt;code&amp;gt;disableUnavailable&amp;lt;/code&amp;gt;: &amp;quot;&amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;&amp;quot; or (default) &amp;quot;&amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;&amp;quot;: Deactivate all users with a UUID in the reference field of the own company. Manually created users are not affected.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
All logs are being added to the configured [[OS4X_Core_configuration#Absolute_path_to_logfile_of_OS4X_API_.28CLI.29|OS4Xapi CLI logfile]].&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>