QPR Knowledge Base

RemoveObjectRights

Hide Navigation Pane

RemoveObjectRights

Previous topic Next topic No expanding text in this topic  

RemoveObjectRights

Previous topic Next topic JavaScript is required for expanding text Mail us feedback on this topic!  

Comments (...)

Revision history:

Introduced in QPR 7.2.1

 

Remove rights of user or group to an element identified by Elementid

 

Synopsis:

 

SCModel.RemoveObjectRights(ElementID, UserName)

 

Parameters:

 

ElementId: Integer

Username: String. Login name of user or name of a group

 

Required Rights:

 

Administrator or Model Administrator rights to the SCModel.

 

Return Values:

Below are listed the return values that this function can return:

 

RV_SUCCESS

RV_MODEL_NOT_OPEN

RV_NO_RIGHTS

RV_INVALID_ACCESSLEVEL

RV_INVALID_ELEMENT_TYPE

RV_USER_NOT_FOUND

RV_COULD_NOT_START_TRANSACTION

RV_OBJECT_NOT_FOUND

RV_UNKNOWN_ERROR

 

Example Procedure:

 

iRet = oModel.RemoveObjectRights(id, "John")

 

Comments (...)