EUS allows to define enterprise roles or proxy permissions and assign them to all the members of a given group. The issue is that EUS supports only static groups (it expects the groups to have the objectclass “groupofuniquenames” or “groupofnames”), and eusm will fail to grant an Enterprise Role to a dynamic group with the following error:
$ eusm grantRole enterprise_role=my_role domain_name=OracleDefaultDomain realm_dn=dc=example,dc=com group_dn=cn=dyngroup,ou=groups,dc=example,dc=com ldap_host=$OUD_HOST ldap_port=1389 ldap_user_dn="cn=directory manager" ldap_user_password=$PWD EUSException: There is no such group in directory
Enterprise Manager will also fail with this type of message, even though the group exists:
Configure Domain : OracleDefaultDomain - Errors my_role - cn=dyngroup,ou=groups,dc=example,dc=com : EUSException: There is no such group in directory
OUD provides a nice feature to workaround this issue: Virtual Static Groups. You need to create a virtual static group that will appear as a static group to Enterprise User Security, but mirrors a dynamic group.
For instance, perform a ldapmodify with the following ldif to define a virtual static group for your group cn=dyngroup:
dn: cn=virtualstatic,ou=groups,dc=example,dc=com cn: virtualstatic ds-target-group-dn: cn=dyngroup,ou=groups,dc=example,dc=com objectclass: groupofuniquenames objectclass: ds-virtual-static-group objectclass: top
You will then be able to use this group instead of the dynamic group in eusm or EM, and you can still benefit from the dynamicity of the original group:
$ eusm grantRole enterprise_role=my_role domain_name=OracleDefaultDomain realm_dn=dc=example,dc=com group_dn=cn=virtualstatic,ou=groups,dc=example,dc=com ldap_host=$OUD_HOST ldap_port=1389 ldap_user_dn="cn=directory manager" ldap_user_password=$PWD