This example program demonstrates how to manage creating, updating and deleting Service User.
The part of deleting a just-created Service User is disabled by deleteAfterRun
variable.
As an example, the Billing Role will be assigned for a new Service User and in update method this Service User will be set to Disabled.
Running this file will execute the following operations:
- Create: Create is used to create a new Service User.
- Update: Update sets Enabled property of the just-created Service User to false
- (Delete): (disabled by default) Delete deletes a just-created Service User.
You should see an output like the following (with all operations enabled):
Step 1: Created Service User ID: a1b2c3...
Step 2: Disabled Service User ID: a1b2c3...
Step 3: Deleted Service User ID: a1b2c3...