0 votes

Hi,

When I import accounts from a CSV file, these accounts are imported to AD disabled.
How can I set the imported accounts to be enabled by default?

by (100 points)

1 Answer

0 votes
by (216k points)

To do so, you have three options:

1. Via Property Patterns specify the default value for the Account Options property.


2. Create a Business Rule that will be triggered after creation of new users, and enable their accounts.

3. Specify the Account Options property in your CSV file for each user (the LDAP name of the Account Options property is userAccountControl).

For example:
DN,cn,objectClass,sAMAccountName,userPrincipalName,userAccountControl
"CN=John Doe,CN=Users,DC=example,DC=com","John Doe","user","johndoe","johndoe@example.com","544",

You can use the Flag Set Editor to build values for the userAccountControl property.

0

For more details, please see Import User Accounts from a CSV File.

0

Thanks to everybody!

Related questions

0 votes
1 answer

Is it possible to have the search function on the self-service portal return enabled accounts and restrict results to certain OUs?

asked Jan 5, 2017 by jaredneedell (50 points)
0 votes
1 answer

Maybe there is a better way to accomplish this, so I'm open to suggestion. We are in a hybrid setup between onprem and M365. When we create a new user, they are ... command in the previous step, right? If needed, I can provide the full script. Thanks!

asked Nov 2, 2023 by AndrewMeyer (20 points)
0 votes
1 answer

When I enable a scheduled task, instead of running at the scheduled time they all run imeadiately. This is not good behavior as changes are written in a way to reflect the ... is being enabled. I am hoping there is a powershell command to stop this behavoir.

asked Jul 10, 2023 by mightycabal (1.0k points)
0 votes
1 answer

Rule-based membership fails for security enabled distribution group with error "The term 'Add-DistributionGroupMember' is not recognized as the name of a cmdlet, function, ... Exchange Online before running this PowerShell command. Here is rule based set up.

asked Mar 7, 2023 by KIT (910 points)
0 votes
0 answers

Starting from Adaxes 2023.2, Adaxes uses the EXOv3 PowerShell module for all operations in Exchange Online. This means basic authentication in WinRM can be disabled on ... s OAuth token because the client-side implementation of WinRM does not support OAuth.

asked Mar 1, 2023 by Adaxes (550 points)
3,350 questions
3,051 answers
7,791 comments
545,067 users