Using the My Oracle Support Portal (MOSC)

MOSC Banner

Groovy script to get user job roles.

edited Jun 28, 2019 8:31AM in Using the My Oracle Support Portal (MOSC) 6 commentsAnswered

I tried with below script to get user job roles but it showing resource roles not job roles. Is there script to get user job roles using script:

def vo = newView('Resource');

def vc = vo.createViewCriteria()

def vcr = vc.createRow()

def vci1 = vcr.ensureCriteriaItem('PartyId')

vci1.setOperator('=')

vci1.setValue(adf.util.getUserPartyId())

vc.insertRow(vcr)

vo.appendViewCriteria(vc)

vo.executeQuery()

if(vo.hasNext()) {

def r = vo.next()

def x = r?.Roles.toString()

  println('roles: '+x)

}

Regards

Rakesh

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center