We have policies to define username of employee : CloudA (if employee name is Automation Cloud —> All alphabets of last name + first alphabet of first name)
Active directory work through different domains. You can connect through LDAP URLs and get or set the user details. to change cloud or on-Premise configuration you need to update in exchange or O365 as well.
You can achieve it through Powershell as well. Just there are different ways to connect to exchange,normal, and Office 365 Powershell.
Basic Idea is to get the common name first and under which domain/server it exists. Below object can give you that:- (&(objectCategory=person)(objectClass=user)(sAMAccountName=))
By using the common name you can get the rest of the property of the user like to get the manager name, object property required to get the details is ‘manager’
Thanks Prasoon.
Commands are really helpful to get parameter values.
I was not sure to pass Bot credentials using Invoke PowerShell activity. So, I’ve tried and used UiPath activities - Get Object Properties to update parameters values - End date(accountexpirationdate, profile (scriptpath), manager