Allow to edit model category for HAM Admin in case of mismatch between model category and CI class
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Given I am a user with 'ham_admin' role When I open an asset record that satisfied the below condition: 'CI Class' field of asset's 'Model Category' does not match to the class of the CI that is linked to the asset THEN I should be able to modify the 'Model Category' field of the asset.
This is the requirement I need help for this implementation like what approach will work here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi @devanshsing
You can restrict update using UI Policy and Business Rule
UI Policy :
This runs when the form is opened. It checks if the asset’s Model Category CI Class is different from the linked CI’s Class.
If they don’t match → make the Model Category field editable.
If they do match → keep it read‑only.
This gives the user the right experience on the screen.
Business Rule:
This runs when the record is being saved. It double‑checks the same condition.
If mismatch and user is ham_admin → allow the update.
Otherwise → block the update.
This ensures the rule is enforced even if someone tries to bypass the UI (like through APIs or imports).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
