218
Views
5
Comments
Getting role required error
Application Type
Reactive
Service Studio Version
11.54.1 (Build 62118)

Hi Folks,


I am getting copyrightAdministrator role required error I have checked that screen where this "IntendedUseBlock"  web block is used that screen is checked with this role.

This is the error logs in snapshot which is logged into the service center.


Thanks in advance.

2023-04-06 11-24-23
Paulo Zacarias

Hi Arun, 

The CreateOrUpdateIntendedUse action is checking the permissions of the user that is trying to perform the action. 

Have you checked if that CheckPermissions node is getting the correct user id?

Regards

2025-02-10 17-24-13
Arun Rajput

Hi Paulo Zacarias

I am not using any check permission action in my logic.

There are only two entity action one is update and other is createorupdate.

I have explained my issue in more details in below.

Thanks

2021-04-21 18-57-56
Kirk Groff

While your screen may have the CopyrightAdministrator role, it looks like an Action "CreateorUpdateIntendedUse" is also checking for this role before it performs its record update.

Check the user you tested this with - it seems the user does not have this role applied to it.

This is an example syntax for checking a role for the current logged in user: 
CheckCopyrightAdministratorRole(UserId:)

2025-02-10 17-24-13
Arun Rajput

Hi All thanks for your quick response.

Let me explain this issue in more details.

The page on which I am getting this error has both the role checked(Register role and CopyrightAdministrator role) and CreateorUpdateIntendedUse is server action in which I have just used one update action and one createorupdate action from two entities.

This error is coming at the time of automation testing for registered user only which is inconsistent also sometimes I am getting this or sometimes not.


Thanks


2023-04-06 11-24-23
Paulo Zacarias

Hi Arun, can you debug it and check if you have a valid session while performing the automation tests?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.