I am looking for a powershell command to add an Active Directory user to a list and set the permission level on the list, e.g. read or contribute.
Ideally, the script should check if the list is inheriting permissions from the parent and if so, remove the inheritance, clear the list of users and add the specified users.
Any ideas?










