We create user accounts automatically via an external orchestration tool that makes API calls to create the user account, and then uses Permissions to link existing Saved Commands and Computed Attributes to the user. This is quite simple and works, as these are global and do not differ between users.
We also need to automatically add some Notifications to new user accounts, but linking existing Notifications is unsuitable because any changes made to a notification then applies to everyone else with that notification (even when these user accounts are totally unrelated). Specifically the item of concern is selecting or de-selecting the "All Vehicles" option which would disable notifications for other users.
It looks like we can potentially create custom notifications though, because when a user creates a Notification - say, for "Command Result", the actual object appears to select the next available notification id.
Is the correct process then to do the following:
- Create new Notification with a blank id field
- Note what id is automatically generated when the notification was created
- Link that Notification to the user account
- Edit/Update the Notification as required (set it to All Vehicles for example)
Come to think of it, after creation I think we should un-link these notifications from the account that created them, otherwise that account - if it ever logs in - will see hundreds/thousands of notifications.
Sounds correct to me. Basically do what you would do in the web app. Register new notification, link it to the target user and unlink it from yourself.
For the benefit of other readers, when I said "will see hundreds/thousands of notifications", I meant the list of configured notifications in the GUI, not that I'm aware if they would receive thousands of notifications.
We create user accounts automatically via an external orchestration tool that makes API calls to create the user account, and then uses Permissions to link existing Saved Commands and Computed Attributes to the user. This is quite simple and works, as these are global and do not differ between users.
We also need to automatically add some Notifications to new user accounts, but linking existing Notifications is unsuitable because any changes made to a notification then applies to everyone else with that notification (even when these user accounts are totally unrelated). Specifically the item of concern is selecting or de-selecting the "All Vehicles" option which would disable notifications for other users.
It looks like we can potentially create custom notifications though, because when a user creates a Notification - say, for "Command Result", the actual object appears to select the next available notification id.
Is the correct process then to do the following: