Unable to add users in group table when I created list controll
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2023 06:23 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2023 06:31 AM
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 mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2023 06:37 AM
provided all roles required, but when I remove list control its working fine

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2023 06:43 AM
I think the code should be
current.manager == gs.getUserID(); not current.group.manager
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2023 07:08 AM
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,,