Patent ID: 7996893

Claim:
A computer implemented method for performing an automated task in a role-based access control environment, the computer implemented method comprising: assigning by one or more processors a set of roles to a user to form assigned roles, wherein the role-based access control environment allows the user to assume a subset of the assigned roles at a given time; responsive to receiving a request to execute an automated task, identifying by the one or more processors an identity of the user creating the automated task, wherein the step of identifying the set of session roles based on the identity of the user further comprises: determining a set of most frequently assumed roles for the user by ranking roles the user has historically assumed based on how frequently the user assumed each role; and setting the set of most frequently assumed roles as the set of session roles; responsive to a determination that the user creating the automated task is not logged in, identifying by the one or more processors a set of session roles based on the identity of the user; creating by the one or more processors a session for the automated task; and performing by the one or more processors the automated task in the session using the set of session roles.