Users (creating, reading, updating and deleting)
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
The following code shows how to use the API service
to create, read, update, and delete single users using the IUser interface:
|
It is also possible to retrieve a collection of users in the
database from the service and then do create, read, update, and
delete on users in the IUserSet collection before
passing the collection to the service to be committed in a single
transaction:
|
Users can also be created, read, updated, and deleted in a similar
manner on the Users property collection available
on the IDomain interface. When creating a new IUser to
add to the IDomain Users collection
the user name should be passed to the constructor without the @domain qualifier,
as follows:
|
For more information on the:
-
IUserentity interface, see IUser interface -
IUserSetentity collection interface, see IUserSet interface