Skip to content

SET_MODELGROUP_ACCESS ​

SET_MODELGROUP_ACCESS changes the access mode of a usergroup on a modelgroup.

Syntax ​

leo-grammar
CC "Core" SET_MODELGROUP_ACCESS mgroupid:idValueusergroup:strValue
								singlesignon:1|0 
								access: strValue

#--> RESULT ecode:intValue .

Parameters ​

  • mgroupid (intValue) - he ID of the model group
  • usergroup (strValue) - the name of the user group; If singlesignon is true (i.e. it is specified without value or with nonzero value), usergroup is interpreted as system user group name, otherwise (not specified or with value 0) usergroup is interpreted as ADOxx user group name.
  • singlesignon (boolValue) -
  • access (strValue) - Value; the value can be either "none", "read" or "write". If anything else is passed, the value "none" is used.

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success.

Details ​

See Also ​

Examples ​

asc
CC "Core" GET_MODELGROUP_ID mgroupname:"Modelle" sep:"\t"
CC "Core" SET_MODELGROUP_ACCESS
        mgroupid:(mgroupid) usergroup:"ADOxx" access:"write"
CC "Core" SET_MODELGROUP_ACCESS
        mgroupid:(mgroupid) usergroup:"BOC" singlesignon access:"read"

Versions and Changes ​

Available since ADOxx 1.3