Hi Experts,
My problem statement is: get the last created AD account > get the sAMAccountName from the account and increment it. Is there any way this is possible doing this is the BeforeProvisioning Rule?
Looking for ideas!
Thanks,
Tamalika
Hi Experts,
My problem statement is: get the last created AD account > get the sAMAccountName from the account and increment it. Is there any way this is possible doing this is the BeforeProvisioning Rule?
Looking for ideas!
Thanks,
Tamalika
Hello @tamalika01,
Could you please clarify why we need the sAMAccountName
of the most recently created account? Iād appreciate it if you could elaborate a bit more on the requirement.
Thanks!
Iād like to understand your use case better, you could try, suggest creating a delimited source. Whenever you generate a samaccountname, you could write to this delimited source.
Then, you can retrieve the most recently created account from that source and utilize it accordingly
You might be able to do this using After Creation rule (type: ConnectorAfterCreate
) where you can run some native PowerShell script to find the last account created (one before the current account that just got created) and extract the number from it, then update the sAMAccountName of newly created AD account
Hi @tamalika01,
Could you please share a bit more detail about your requirement? That would help us provide a more relevant suggestion.
Thanks,
Ujjwal
Hi
Do you have multiple AD sources and need to check uniquess then you can follow below LA