
j8nga (j8nga) asked a question.
Hi,
So I have setup my Okta org and Active Directory. AD agent installed successfully and everything appears to be alright. AD to Okta works perfectly fine no problem. OktaService (Service account) is in the Domain Admin group (which is ideally not required but for test purposes.
I still am getting Access code 5 - Denied when I assign AD to newly created Okta users which I am getting from an HR system (My amazing csv flat file). I need for these to be created on AD and that's when i am running into this.
What am I missing here?

Out of curiosity, did you install the Okta AD agent on the domain controller? Reading through this thread, I was wondering if it was just a matter of the order of the steps you took. If you installed the AD agent, then added the service account to the Domain Admins group, it makes sense that you would get errors because you would have needed to restart the Okta AD agent before it would have gained the Domain Admins rights (group memberships are only evaluated at sign in). And if the Okta AD agent is installed on the domain controller, rebooting the DC would also restart the Okta AD agent service, also resulting in the service account's elevated privileges.