1.6.2. Admin Policies#
If you want to define policies for administrators managing tokens, you need to enter “admin” at the scope field.
Note
As long as there is no policy in the scope “admin” defined, all admins will have access to all functionality. This is the old behavior of LinOTP version 2.2. As soon as the first admin policy is defined, admin policies are checked for each and every administrator.
Note
the ‘show’ permission is an implicit permission. As soon as any admin policy for an administrator is defined, the administrator will be able to query all tokens of the realm in scope of this policy.
You may enter several comma separated administrator names into the user field.
You may enter several comma separated actions into the action field. Entering an asterisk ‘*’ here, will allow the administrators to perform all actions.
You may enter several comma separated realm names into the realm field. Entering an asterisk ‘*’ here, will allow the administrators to perform these actions in all realms.
Valid actions are:
init<TOKENTYPE>The administrator is allowed to enroll tokens of that type. Replace <TOKENTYPE> with the type you want to allow the administrator. List multiple init<TOKENTYPE> actions for each type you want to enable. Examples: initSMS or initTOTP.
enableThe administrator is allowed to enable tokens.
disableThe administrator is allowed to disable tokens.
setThe administrator is allowed to set token properties like MaxFailCount, SynWindowSize.
setOTPPINThe administrator is allowed to set the OTP PIN of tokens.
setMOTPPINThe administrator is allowed to set the mOTP PIN of mOTP tokens.
setSCPINThe administrator is allowed to set smartcard PINs (SO and User) in the database.
resyncThe administrator is allowed to resynchronize HMAC tokens.
resetThe administrator is allowed to reset the fail counter of tokens.
assignThe administrator is allowed to assign tokens to users.
unassignThe administrator is allowed to remove the assignment from tokens to users.
importThe administrator is allowed to import token description XML files.
removeThe administrator is allowed to delete tokens from the database. These tokens are completely removed from the system.
userlistThe administrator is allowed to view the users in this realm.
tokenownerThis action allows the administrator to use the api /admin/getTokenOwner, used in the _losttoken_ workflow in the /manage user interface.
checkstatusThe administrator is allowed to use the api /admin/checkstatus to show the status of one or more challenges.
manageTokenThis action allows to add and remove tokens from a realm. To be able to move tokens from a Realm A to a Realm B, the administrator needs the action manageToken both in Realm A and in Realm B.
getserialThis action allows the administrator to use the getSerialByOtp tool.
copytokenpinThis action allows the administrator to use the copyTokenPin tool. This is used to copy the OTP PIN of one token to another token without the administrator knowing the PIN.
copytokenuserThis action allows the administrator to use the copyTokenUser tool. This is used to copy the User of one token to another token.
losttokenThis action allows the administrator to use to lost token function.
totp_lookupThe administrator is allowed to use the api /admin/totp_lookup to get information for a past otp value of a TOTP token. Includes, when and how long the given OTP was valid.
getotpThis action allows the administrator to run the get OTP workflow for tokens in the specified realm. Please be aware: you have to enter at least one valid administrator name in the field
user- a*will not work and you must set a realm (*will work here).showThis action is implicitly granted if the administrator has any admin policy that matches this user. It can be listed as the only action for administrators to only grant “readonly” access to some realm or at all.
unpair`The administrator is allowed to use the api /admin/unpair to unpair tokens that support this feature (like qr tokens).