Chapter 4. IdM API example scenarios