Pages

Friday, June 28, 2013

Deleting Authorization list

In order to delete an Authorization list that has objects that are secured and users which are secured by this Authorization list, you need to follow the below procedure.

First, you have to revoke authority on the objects that are secured by this Authorization list. If you remember the previous topic on Authorization list where, I had created an Authorization list called JOBSC. I had secured one object CRTAUTL command using this Authorization list. And this Authorization list ensured HSDRB user profile had *EXCLUDE authority and *PUBLIC had *USE authority. 

Now, lets delete this Authorization list.

If you press 4 next to this authorization list and press enter. It would not delete this Authorization list, since there is a Object that is secured using this Authorization list. So, at first we need to revoke Authority on this Object i.e. CRTAUTL command.

The command would be  
RVKOBJAUT OBJ(QSYS/CRTAUTL) OBJTYPE(*CMD) AUTL(JOBSC)  

The important parameters are OBJECT , OBJECT TYPE and AUTHORIZATION LIST.

You can also specify USER, but if you use USER and AUTL parameter together, it will not be processed by AS400. Similarly, parameter AUT and AUTL can not be used simultaneously.

After, the authority is revoked. You can check using option 8 next to the Authorization list ( Display objects in list). The screen would be blank in this case as I used only one object. You have to follow this until all the objects secured by the Authorization list are revoked.  When you do not see any objects in the list. You can proceed further.

Now delete the Authorization list.

You can use DLTAUTL AUTL(JOBSC) command or press option 4 next to the Authorization list to delete the same. 

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...