Hardware token management options
In
Compare manual CSV import, Graph API management and the Token2 Inventory App for hardware tokens. The notes describe trade-offs and the initial implementation choice.
Source-derived reference
These notes were recovered from OneNote. Configuration, permissions and operating results have not been freshly verified. Confirm the applicable authority and environment before acting.
There are 3 methods for managing tokens.
- Manual import and management of tokens in a CSV file, via the Security > Multifactor authentication > OATH tokens (Preview) blade in EntraID.
- Import and management using Graph API.
- Using Token2 TOTP Token Inventory App.
- Manual Import.
- Importing and assigning of tokens is done via a .csv file that must contain the following columns. upn, serial number, secret key, timeinterval, manufacturer, model
- To unassign a token, it needs to be deleted from the OATH Tokens Preview blade, and a new CSV uploaded with the required details, specifically the upn of the new user to assign the token.
- Doesn't support SHA-256 tokens, so only option 2 and 3 are suitable for those. (The recommended tokens are SHA-1 tokens, so not an issue).
- The most manual process.
- Using Graph API.
- Requires scripting in PowerShell (or Python if you're interested).
- Uses JSON rather than CSV.
- Can upload, assign, activate and delete tokens programmatically.
- Allows for Self-Service Activation.
- The source suggests this approach for a future deployment of hundreds of tokens.
- Token2 TOTP Token Inventory App.
- This is an app written by Token2. It can run on a web server and requires PHP...or you can use the standalone Windows app.
- Being a GUI it requires less technical knowledge.
- It simplifies the upload, activation, assignment and deletion of tokens
- Supports self-service activation of tokens.
- It uses the Graph API underneath
- It requires an EntraID App registration with a client secret and uses Application permissions rather than user or delegate permissions.
The source recommends the Token2 Inventory App for the initial implementation, with Graph API automation as a possible later approach for larger deployments. Related topic pages describe the captured app setup and use.