This didn't work and it responded with the following error:
Error: com.sas.iom.SASIOMDefs.GenericError: The association from IdentityGroup : A5NUQPXO.A500001C to Person : A5NUQPXO.AP00002V cannot be created. The association from IdentityGroup : A5NUQPXO.A500001C to Person : A5NUQPXO.AP00002V cannot be created.
The IDs should actually be correct. I used the Metadata browser in the SAS Foundation and copied the IDs from there.
Do you know how I can add a user to a group using the XML Metadata Interface?
Most of the OMI documentation is awesome, there's just a lot of it. Quoting from the page I linked to:
The AddMetadata method creates a new object for every property string that is submitted in the <METADATA> element, unless the ObjRef attribute is included in the property string. ObjRef is supported only in a nested property string. It specifies that the object instance is an existing metadata object. It instructs the SAS Metadata Server to create an object reference to the specified object without modifying the specified object's other properties.
Not sure how much this applies as you're updating metadata rather than adding. I dug it up from some old code, so I'm pretty sure my 'journey of discovery' was trial & error 🙂