In the Active Directory Scope, first add Get Object Distinguished Name. Input the SAMAccountName that you wish to look for and create a new variable for the DistinguishedName
Build a Data Table for the attributes to be stored
Do a for each loop to see what the attributes are (key,value). Add For Each loop
In the TypeArgument please select
Once you know there are data in it, add Add Data Row activity in the body of the For Each activity. In the Properties panel, input the Data Table that you created earlier. In the ArrayRow field input {item.Key,item.Value}
Next, we will use Write Range to write the Data Table into an excel. Add a Write Range activity and put the relevant information