The code I have used as follows…
ManageableSecurity security = new ManageableSecurity();
security.setSecurityType(SecurityType.EQUITY.toString());
security.setName(name);
security.setAttributes(attributesMap);
security.setExternalIdBundle(idBundle);
securityMaster.add(new SecurityDocument(security));
Attributes are not shown in the og-example UI.
shows error message sometimes.
but the attributes are visible via security master search