Oracle EPM Cloud planning application provision issue for Groups attribute in Creation

Which IIQ version are you inquiring about?

8.5P1

Please share any other relevant files that may be required (for example, logs).

<ProvisioningPlan nativeIdentity="517070" targetIntegration="Oracle EPM Cloud - MGM 360" trackingId="93f74b478c9c4a06b892bfee3d83abb7">
    <AccountRequest application="Oracle EPM Cloud - MGM 360" assignmentIds="TEMP:de276fdd476e4ab39116e7c5119430c4" nativeIdentity="f8dd4285285a4a21ba6f62f30912af7b" op="Create" targetIntegration="Oracle EPM Cloud - MGM 360">
      <Attributes>
        <Map>
          <entry key="provisioningTransactionId" value="0afe0333a0a21af481a0a5a5b8a85af3"/>
        </Map>
      </Attributes>
      <AttributeRequest name="Groups" op="Add">
        <ProvisioningResult status="failed">
          <Errors>
            <Message key="EntitlementType : Groups is not request-able when creating an account, try provisioning the entitlement through a modify operation." type="Error"/>
          </Errors>
        </ProvisioningResult>
        <Value>
          <List>
            <String>ARIA_WRITE</String>
            <String>AllProperties_READ</String>
            <String>AllDimension_WRITE</String>
          </List>
        </Value>
      </AttributeRequest>
      <AttributeRequest name="IDCSGroups" op="Add" value="c2e77d7df7484bfa964c9a9a3ab2bb63">
        <ProvisioningResult status="committed"/>
      </AttributeRequest>
      <AttributeRequest name="User Login" op="Set" value="517070"/>
      <AttributeRequest name="Email" op="Set" value="vethota@test.com"/>
      <AttributeRequest name="First Name" op="Set" value="Venu Gopal"/>
      <AttributeRequest name="Last Name" op="Set" value="Thota"/>
      <ProvisioningResult status="committed"/>
    </AccountRequest>
  </ProvisioningPlan>

Share all details about your problem, including any error messages you may have received.

I am using Oracle EPM planning connector, while creation of account i need to assign few groups but i am getting error as below.

<Message key="EntitlementType : Groups is not request-able when creating an account, try provisioning the entitlement through a modify operation." type="Error"/>

If add those groups after account creation it’s working, so i tried by separated create and modify request in before provision rule, so groups are provisioning with this approach but getting the error as nativite identity not available, because native identity will create upon creation success, but in modify req i am updating as identity name not the actual nativeidentity that created, so suggest me is there any application configuration that can help to resolve this issue ?

Hi @venumgm235 - We have seen this with EPM. Even if you split the request in the Before rule, the nativeIdentity does not get generated in time for the modify to use it since they are sent at the same time.

You can create a role with assignment criteria that provisions the group(s) and add a requirement that they have to have an active EPM account. That way the account is created and the nativeIdentity is available to allow groups to be provisioned.

Hi Ryan,

assignment criteria is not standard, so it’s difficult to prepare assignment criteria, so i will execute the create request then i will try to update the groups from before provision rule.

@venumgm235 - if you do not have criteria, another option would be to schedule a workflow to add the groups from an afterProvisioning rule. Remove the groups being provisioned from the beforeRule but save them as a plan argument. I would schedule it out a few minutes to make sure you have the nativeIdentity on the account.

@venumgm235 AFAIK for Oracle EPM/EDM, accounts come via IDCS Identity Store. So when we create account we create it in idcs directly and it’ll be available for all the pods. To make them visible in specific pods, you need to assign pod specific groups/roles (i don’t exactly remember). Also, you need to follow a specific order of assignments.. like role assigned first and group later and while removing, remove group first and later roles.

Please check if you also have the similar requirement and we can discuss more if you need any further details..

Requirement is to create the new user in IDCS and assign the IDCS groups and the custom groups, but assigning groups working only with modify operation, so i need assign all in one request

@venumgm235 Please share your app xml for review.

oracleEPMApp.xml (10.5 KB)

@neel193 i just attached the app xml, please review and let me know anything need to update

@venumgm235 We have achieved this using web services connector, we didn’t use the OOTB connector.

Based on the connector doc, seems this is the issue:

The Oracle EPM Cloud connector’s Create operation provisions the user into IDCS and assigns the mandatory PredefinedRoles and/or IDCSGroups. However, EPM-level Groups (the custom/planning-specific groups) can only be assigned once the user actually exists in the EPM pod. Since the EPM account is created as a downstream effect of the IDCS provisioning, those custom groups aren’t assignable in the same Create request — the account doesn’t exist in EPM yet at that point. This is a connector design constraint, not a misconfiguration on your end.

Hi Venu,
After reviewing the app xml ,

  1. Validate Oracle EPM User Create API.
  2. Check whether Groups can be supplied in the create payload.
  3. If supported:
    • Move to Web Services connector.
    • Build full create payload including groups.
  4. If not supported:
    • Stay with OOTB connector.
    • Use Create followed by Modify.

Based on the error you are getting, I’d say there is a good chance the Oracle EPM API itself supports the operation, but the OOTB Oracle EPM connector implementation does not expose it. In that scenario, Web Services connector becomes a valid workaround.

Regards,

Ramesh.

changing all application to Webservice, need additional efforts, because we have almost 7 applications available, so it would-be better if we achieve this with OOTB connector, so do you have any other suggestions on how can we achieve with OOTB connector ?

@venumgm235 You need to try splitting the provisioning into two steps: Create Request followed by Modify requests for groups.
Basically:

  1. Create: Provision the user with the mandatory attributes (User Login, Last Name, Email) plus the required PredefinedRoles and/or IDCSGroups. This creates the IDCS user and links them to the EPM pod.
  2. Execute modify plan to assign the EPM Groups.

Steps should be:
Use a beforeProvisioning rule on the Create plan to:

  • Extract the Groups (custom EPM groups) from the provisioning plan.
    *Store it some where like in CustomGlobal, so it is not lost or read it later again from the request.
  • Remove them from the Create operation.

Then, in an afterProvisioning rule, schedule a follow-up workflow (with a short delay — e.g. 2–3 minutes) that reads those saved group details and submits a Modify request to assign the Groups. The delay ensures the nativeIdentity is available and the EPM account is fully created.

@neel193 I am trying with below snippet, request is scheduling but rule not calling anything is missing in the request ?

ProvisioningPlan modifyPlan = new ProvisioningPlan();AccountRequest accountRequest = new AccountRequest();accountRequest.setNativeIdentity("596077");accountRequest.setApplication("Oracle EPM Cloud - MGM 360");accountRequest.setOperation(AccountRequest.Operation.Modify);accountRequest.add(new AttributeRequest("Groups", ProvisioningPlan.Operation.Add,"AllProperties_READ"));Identity identity = context.getObject(Identity.class, "596077");modifyPlan.add(accountRequest);modifyPlan.setIdentity(identity);Calendar calendar = Calendar.getInstance();calendar.add(Calendar.MINUTE, 1);Date executionTime = calendar.getTime();

String requestName = "Deferred EPM Group Assignment (AfterProvision) - " + nativeIdentity + " (" + executionTime.getTime() + ")";

Attributes reqArgs = new Attributes();reqArgs.put("rule", "MGM - Oracle EPM 360 Schedule Rule");reqArgs.put("plan", modifyPlan);

Request reqObj = new Request();RequestDefinition reqdef = context.getObject(RequestDefinition.class, "Rule Request");reqObj.setDefinition(reqdef);reqObj.setEventDate(executionTime);reqObj.setName(requestName);reqObj.setOwner(context.getObjectByName(Identity.class, "spadmin"));reqObj.setAttributes(reqdef, reqArgs);

try {RequestManager.addRequest(context, reqObj); // [source: 4]logger.debug("MGM - Oracle EPM After Provision Rule: Trailing group assignment scheduled successfully for " + nativeIdentity + " at " + executionTime);} catch (Exception e) {logger.error("Exception occurred while scheduling trailing groups request: " + e.getMessage(), e);}


@venumgm235 Could you please share the code in clean format.. there is no line breaks, making it difficult to understand and follow.

One quick observation: As it is a modify request, you should also set the nativeIdentity in the Account Request. Also, you can schedule WorkflowRequest.. Here is a sample code:

RequestDefinition reqDef = context.getObjectByName(RequestDefinition.class, "Workflow Request");
Workflow wf = context.getObjectByName(Workflow.class, workflowName);
Identity owner = context.getObjectByName(Identity.class, <youridentity");

if (identity == null || reqDef == null || wf == null || owner == null) {
    log.error("LCM deferred provisioning: missing identity/reqDef/workflow/owner for " + identityName);
    return;
}

Calendar cal = Calendar.getInstance();
cal.add(Calendar.MINUTE, delayMinutes);
Date executionTime = cal.getTime();

Attributes args = new Attributes();
args.put("workflow", wf.getName());
args.put("plan", plan);
args.put("identityName", identityName);
args.put("launcher", "spadmin");
args.put("flow", "AccountsRequest");        // LCM flow name
args.put("source", "LCM");
args.put("approvalScheme", "none");         // skip approvals for the deferred run
args.put("notificationScheme", "none");
args.put("requestName", "Deferred LCM Provisioning - " + identityName);

Request req = new Request();
req.setDefinition(reqDef);
req.setEventDate(executionTime);
req.setOwner(owner);
req.setName("Deferred LCM Provisioning - " + identityName + " (" + executionTime.getTime() + ")");
req.setAttributes(reqDef, args);

try {
    RequestManager.addRequest(context, req);
    log.info("Scheduled LCM provisioning workflow '" + workflowName + "' for "
            + identityName + " at " + executionTime);
} catch (Exception e) {
    log.error("Failed to schedule LCM provisioning for " + identityName + ": " + e.getMessage(), e);
}

With workflow launch i am able to schedule the workflow and it’s working, while checking on this issue i noticed groups aggregation issue for Oracle EPM, there are few custom groups are not coming in the group aggregation.

Majority of custom groups are getting aggregated but only 3 groups are not coming, any suggestions ? app xml already in thread