Skip to Main Content

Visual Builder

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to map VBCS Roles to IDCS Groups through VB Studio for PWA Mobile App

AparajitMalliJawaharBapuAug 25 2023 — edited Aug 28 2023

Hi,

We built a **PWA Mobile** app that connects with Oracle B2B (OEC), without security. Now, we added security. 

We have 2 roles - Contractor and Agency Assessor. I created these 2 roles in VBCS and mapped to IDCS groups (that syncs from OEC) for every profile in our app. We initially tried this by creating an input text that shows $application.user.roles to see if the logged in user's roles and made it Live from VBCS (ic/builder) and it works fine.

Logged in as contractor (has only contractor role)

Logged in as Agency Assessor (has only Agency Assessor role)

  1. approle.authenticated.user is the built-in role for all authenticated user, I think.
  2. contractor & agencyAssessor are the VBCS roles I created and mapped it to IDCS group

Now, we tried to implement the same from VB studio project. Created new workspace and did the same mappings.

One thing that was different from VB Studio, it does not show the profiles, instead it shows “Mapping” and I did the mapping for all the 3 (Workspace, Deployed with version in url, Deployed)

Yet, the roles are not showing correctly. May I missing something?

It shows only “approle.authenticated.user” for both contractor and agency assessor logins.

I validated that user-roles.json has the correct IDCS Role “Dev1” “id”s.

I also logged in IDCS Dev1 and manually mapped the Application Roles to IDCS Groups.

VB Studio is in Test tenancy and I am trying to deploy the App to Dev1 tenancy (VBCS Dev1, IDCS Dev1, OEC Dev1).

Is this why the role mapping is not working?

This post has been answered by Shay Shmeltzer-Oracle on Aug 29 2023
Jump to Answer
Comments
Post Details
Added on Aug 25 2023
8 comments
696 views