@@ -998,6 +998,15 @@ def adduserstoshare(
998998
999999 self ._raise_exception_from_command (resp )
10001000
1001+ def addgrouptoshare (self , share : FCShare , groupid : str ) -> None :
1002+ """
1003+ Allow group access to share
1004+ """
1005+ resp = self ._api_call (
1006+ "/core/addgrouptoshare" , {"shareid" : share .shareid , "groupid" : groupid }
1007+ )
1008+ self ._raise_exception_from_command (resp )
1009+
10011010 def createfolder (
10021011 self ,
10031012 path : str ,
@@ -1071,6 +1080,35 @@ def setuseraccessforshare(
10711080 )
10721081 self ._raise_exception_from_command (resp )
10731082
1083+ def setgroupaccessforshare (
1084+ self ,
1085+ share : FCShare ,
1086+ groupid : str ,
1087+ allowwrite : bool ,
1088+ allowdownload : bool ,
1089+ allowshare : bool ,
1090+ allowsync : bool ,
1091+ disallowdelete : bool ,
1092+ adminproxyuserid : Optional [str ] = None ,
1093+ ) -> None :
1094+ """
1095+ Set group permissions for share
1096+ """
1097+ resp = self ._api_call (
1098+ "/core/setgroupaccessforshare" ,
1099+ {
1100+ "shareid" : share .shareid ,
1101+ "groupid" : groupid ,
1102+ "write" : "true" if allowwrite else "false" ,
1103+ "download" : "true" if allowdownload else "false" ,
1104+ "share" : "true" if allowshare else "false" ,
1105+ "sync" : "true" if allowsync else "false" ,
1106+ "disallowdelete" : "true" if disallowdelete else "false" ,
1107+ "adminproxyuserid" : adminproxyuserid if adminproxyuserid else "" ,
1108+ },
1109+ )
1110+ self ._raise_exception_from_command (resp )
1111+
10741112 def getusersforshare (self , share : FCShare ) -> list [FCShareUser ]:
10751113 """
10761114 Returns a list of users that are added explicitly to the share
0 commit comments