[This is preliminary documentation and is subject to change.]

Revokes account ownership or admin privilege on a particular account to a particular user.

Namespace:  OfficeClip.DBLayer.Account
Assembly:  OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0

Syntax

C#
public int RevokeAccountAdminPrivilege(
	int accountId,
	int userId
)
Visual Basic (Declaration)
Public Function RevokeAccountAdminPrivilege ( _
	accountId As Integer, _
	userId As Integer _
) As Integer
Visual C++
public:
int RevokeAccountAdminPrivilege(
	int accountId, 
	int userId
)

Parameters

accountId
Type: System..::.Int32
id corresponding to a particular account
userId
Type: System..::.Int32
id of one of the users in that account who has to be revoked ownership or admin privileges.

Return Value

0 if successful, -2 if the user is the only ownder of the account and hence privileges can not be revoked, Utils.Constants.NotAvailable in case of a general error. Throws Utils.OCException if there is a system or database exception.

See Also