Samaccount and distinguish name Generation

:bangbang: Please be sure you’ve read the docs and API specs before asking for help. Also, please be sure you’ve searched the forum for your answer before you create a new topic.

Hello Team
Just a guidance request.
How are you generating DN and SamaccountNAme that are both Unique?

My Current Code generates DN then from DN it derives a SamAccount but over time this is becoming an issue I have too many accounts passing DN but failing SamAccount generation.
can i do more than 1 source check?

Hi Peter,

Can you link your transforms for DN and samaccountname?

Hi @peter_muchangi ,

Fetch the data from DN using static transform, fetch the details of DN attribute and store it directly into the attribute samaccountname.

Value should be like, “$attributeName”.

Refer these,

Hi Sebastian
How?
Currently I create a DN after which from DN i create a SamAccount. but DN may be available but samaccount is not.
example CN= Sebastian Wegmann DC=Users is available but sebastian.wegmann is not since a user in another OU has it

Okay so you need to work with ${uniqueCounter} in order to add an int to non-unique values.

but this implies i do a uniqueness check on 2 attributes is this ok?
i check the DN and I also check the samaccount.

If you send a snapshot of your code/JSON it would be easier to help you :slight_smile: Censor out any sensitive information.

Hi Peter,
Do this. First have the samAccountName in the Provisioning Policy and calculate the uniqueness check in there. Once that is done refer the same in the DN attribute below as $samAccountName.

We are doing the same and it works fine. If samAccountName is unique and you are using it in DN it will also be unique.

Thanks

1 Like

Hi Rakesh
any tips on the conversion from samaccount to DN?
sample code

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.