Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help


search: keywords: ['java', 'osecurityuser', 'setaccountstatus']

OSecurityUser - setAccountStatus()

Sets the user account status.

Account Status

OrientDB supports the use of a general status, which is either ACTIVE or SUSPENDED to determine whether the user can access resources. This makes it relatively straightforward to quickly disable account should the need arise. Using this method, you can set the status account. To retrieve the current status, see the getAccountStatus() method.

Syntax

void OSecurityUser().setAccountStatus(OSecurityUser.STATUSES status)
ArgumentTypeDescription
statusOSecurityUser.STATUSSIndicates the status that you want to set, which is either ACTIVE or SUSPENDED