What is Enrollment?
Enrollment connects your driver machine to your Granite organization. The driver exchanges a one-time token for permanent credentials.Creating an Enrollment Token
Using the Token
On your driver machine:- Interactive
- Command Line
- Environment Variable
What Happens During Enrollment
- Token validation - Backend verifies the token is valid and unused
- Credential generation - Backend creates permanent API credentials
- Credentials stored - Driver saves credentials locally
- Token consumed - Token can’t be reused
- Connection established - Driver connects to your organization
Verifying Enrollment
After successful enrollment:- Go to Driver Management in the dashboard
- Your machine should appear in the list
- Status should be Online (green)
Re-enrolling
If you need to re-enroll (new credentials, different org):- Delete stored credentials:
- Create a new enrollment token
- Run enrollment again
Multiple Organizations
A single driver can only belong to one organization. To use with a different org:- Stop the driver
- Delete credentials
- Enroll with the new organization’s token
Security
Enrollment tokens are:- One-time use - Consumed on successful enrollment
- Time-limited - Expire after 24 hours
- Organization-scoped - Link driver to specific org
- Revocable - Can be revoked before use
Troubleshooting
Token invalid or expired
Token invalid or expired
- Check the token wasn’t already used
- Create a new token if expired
- Make sure you copied the full token
Network error during enrollment
Network error during enrollment
- Check internet connectivity
- Verify firewall allows HTTPS to api.getgranite.ai
- Try again
Driver shows offline after enrollment
Driver shows offline after enrollment
- Check the driver is still running
- Verify WebSocket connection in logs
- See Troubleshooting