#g4msod_removePermissions

*//////////////////////////////////////////////////////////////*

* g4msod_removePermissions - Remove permissions to an item *

* *

* Output: *

* out_errMsg - The error message (if error exists). *

* *

* Returns: *

* -1 for error, 0 for success *

* *

* Settable Variables ([r]=required) *

* id - MS ID [r] *

* item_id - The ID of the item to remove permissions for. *

* Either this or path is required. [r] *

* path - The fully qualified name of the file or folder to *

* remove permissions for. Either this or item_id is *

* requred. [r] *

* permission_id - The permission ID to remove. [r] *

* group_id - Specify the group ID to remove permissions from.*

* group_name - Specify the group Name to remove permissions *

* from. *

* ccsid - The CCSID to use (1252) *

* debug - Turn on Debug (*NO, *YES) *

* debug_file - The debug file name. *

* (/tmp/g4ms_[id]_removePermissions.txt) *

* *

*//////////////////////////////////////////////////////////////*

D g4msod_removePermissions...

D PR 10i 0

D out_errMsg 256 Options(*NOPASS)

g4msod_removePermissions will remove any permissions granted by a specific permission ID.

Returns: -1 for error, 0 for success.

Optional Parameters:

  • Error Message (output) - Error message

Settable Variables (use #g4msod_setValue):

  • id (required) - Your Microsoft ID

  • item_id - The id of the item. Either the item_id or path must be used. Using the item_id will result in faster execution.
    OR

  • path - The fully qualified path to the item you wish to remove permissions for.
    ie: /my Documents/Files/test.pdf

This parameter IS case sensitive.

  • permission_id - Specify the permission ID to remove specific permissions for. This value is returned from the #g4msod_createShareableLink function.

  • group_id - Specify the group ID to remove permissions from.

  • group_name - Specify the group name to remove permissions from. This will be ignored if the group_id is specified.

  • ccsid - The CCSID to use. The default is 1252.

  • debug - Specify *YES to turn on debug, or *NO to turn off debug. The default is *NO.

  • debug_file - Specify the fully qualified file name for the main debug file. The default is /tmp/g4ms_[id]_removePermissions.txt.[n] where [id] is the Microsoft ID and [n] is the request index.