added function to create share with permission

possibility to create shares with multiple users and different
permissions on the share