Custom privacy plugin

Is there any way to create custom privacy settings with plugin based on a LDAP class value ?

I can only see the option to delete some : PeerTube documentation