Unable to add users in group table when I created list controll

Chandu14
Tera Contributor

Created list control for sys_user_grmember.group with condition as only group manager need to see edit option in group table related tab. But when I am trying to add user to group it showing an error as " action not authorized", what might be the issue, please check the attachements.

4 REPLIES 4

Basheer
Mega Sage

Hi @Chandu14 ,

Action not authorized error means the user credentials through which you are trying to create doesn't have access to create the records.

Try giving the required roles to the manager for creating the records.

 

Please hit like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.

Cheers,
Mohammed Basheer Ahmed.

Chandu14
Tera Contributor

provided all roles required, but when I remove list control its working fine

 

I think the code should be

current.manager == gs.getUserID(); not current.group.manager

Please hit like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.

Cheers,
Mohammed Basheer Ahmed.

Chandu14
Tera Contributor

If I try to change the current.manager, its not working.

Is that restricted by "(new GlideRecord(current.getTableName())).canCreate() && RP.isManyToMany() && !RP.getListControl().isOmitEditButton() "this ui action condition ?
I remove isOmitEditButton, I can Edit,,but not satisfying the group manager,,