The problem with that methode is, that if i proxied to another user and start my script, i dont’t get the AccountRightsCollection set of all users, which have proxy access to that user.
It will return only one AccountRights object with the rights the root account has to the proxied account.