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

We used to use a script to check if an AD user's MFA was set in Azure (Hybrid AD/AAD set up). I do not think it is relevant any longer. Is there another script that handles this or some other functionality in order to check a user's Azure MFA status?

asked Aug 23 by msheppard (130 points)
0 votes
1 answer

I need to create a report of all enabled users in selected group or multiple groups. I am aware of the report named "Members of selected groups", but I don't know how to filter only enabled users. Is there a way to achieve this?

asked May 28 by gsoc.ssm (90 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)
3,537 questions
3,227 answers
8,219 comments
547,728 users