Source: projects/identity-management/oim-kb-update/sandbox-host/2026-04-27-sdk-scripts-itshoporg.md
> Source: projects/identity-management/oim-kb-update/sandbox-host/2026-04-27-sdk-scripts-itshoporg.md
SDK ScriptSamples: ITShopOrg create/remove
Why this matters
The OIM SDK ships ScriptSamples that show a *supported* (object-layer) way to create and remove IT Shop
structures via the ITShopOrg entity, instead of direct SQL DML against BaseTree.
This is directly relevant for “smallest supported sequence” questions around IT Shop structure and shop availability.
Evidence (shipped sample logic)
Create shop + customer node (script: 01 Create ITShop.vb)
The sample function CreateITShop(identShop):
- Checks whether a shop exists by querying
ITShopOrgwithITShopInfo='SH'andIdent_Org=<identShop>. - If missing, creates a new
ITShopOrgentity and sets: UID_OrgRoot = 'QER-V-ITShopOrg'ITShopInfo = 'SH'Ident_Org = <identShop>- Then creates a customer node under the shop and sets:
UID_OrgRoot = 'QER-V-ITShopOrg'UID_ParentITShopOrg = <shop.UID_ITShopOrg>ITShopInfo = 'CU'Ident_Org = 'Employees'- Wraps both creations in an object-layer
Transaction(Session)andCommit().
The comment block notes:
- The script is intended to run in a script task generated by
INSERTorUPDATEevents of an organization. - “Shelfs and products can be created automatically if there are appropriate templates.”
Remove customer node + shelves + shop (script: 03 Remove ITShop.vb)
The sample function RemoveBoardsAndShop(identShop):
- Finds the shop (
ITShopInfo='SH'+Ident_Org=<identShop>). - Queries child
ITShopOrgrows byUID_ParentITShopOrg=<shop.UID_ITShopOrg>and deletes them. - Deletes the shop entity itself.
- Wraps deletions in a
Transaction(Session)andCommit().
The comment block notes the script is intended to run via a script task generated by the DELETE event of the organization,
and references a sample process chain in the SDK’s JobChainSamples folder.
Open follow-ups
- Find the referenced
JobChainSamplesfor the full “supported” process-chain wiring around create/remove. - Check whether the shipped samples include IT Shop shelf (BO) creation or product (PR) publishing sequences for entitlements.