Oracle® Fusion Middleware Developer's Guide for Oracle IRM Server 11g Release 1 (11.1.1) E12326-03 |
|
![]() Previous |
![]() Next |
Home > Developer's Guide for Oracl... > Working with Users and Groups > The AccountRef Type
AccountRef
TypeThis section contains the following topics:
AccountRef
TypeThe AccountRef
type contains all the information needed to identify a user or group. Typically this type contains a GUID value, but also allows the user or group name to be used. The following code snippets show how to create an AccountRef
using a GUID or a user name or a group name.
AccountRef
Using a GUIDAccountRef accountReference = new AccountReference(); accountReference.setUuid("c9d55dc2-92f6-405d-aa52-ff12ab2792ef");
The GUID format may differ depending on the identity store used.
AccountRef
Using a User NameThe user name must be URL encoded. For example, 'John Smith' could be encoded as 'John+Smith'.
AccountRef accountReference = new AccountReference(); accountReference.setUuid("urn:user:john.smith");
AccountRef
Using a Group NameThe group name must be URL encoded.
AccountRef accountReference = new AccountReference(); accountReference.setUuid("urn:group:everyone");