View user access snapshots.
Get-ROAccess [-Username <String>] [-Refresh]
Get-ROAccess -PurgeRetrieves cached access snapshots from the UserAccess table showing what each simulated user can see in Secret Server (folders, secrets, and templates). Snapshots are automatically refreshed when they exceed the AccessSnapshotMaxAgeDays configuration value. Use -Refresh to force a live update, or -Purge to remove all cached data.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| Username | String | No | -- | Filter results to a single user (Query parameter set) |
| Refresh | Switch | No | -- | Force a live refresh of the access snapshot (Query parameter set) |
| Purge | Switch | Yes | -- | Delete all cached access data (Purge parameter set) |
Get-ROAccessReturns the cached access summary for every registered user.
Get-ROAccess -Username 'svc-simuser01' -RefreshQueries Secret Server live and updates the cached snapshot for the specified user.
Get-ROAccess -PurgeRemoves all rows from the UserAccess table.
| Property | Type | Description |
|---|---|---|
| Username | String | The simulated user |
| FolderCount | Int32 | Number of folders accessible |
| SecretCount | Int32 | Number of secrets accessible |
| TemplateCount | Int32 | Number of secret templates available |
| TemplateNames | String[] | List of template names |
| CheckedAt | DateTime | When the snapshot was last refreshed |