User is unauthorized to access table: em_alert

abjaffrey
Giga Guru

Hi 

 

i need to provide api for get method on alert table however im getting the error,

 

User is unauthorized to access table: em_alert.

Any idea how to resolve this.

 

Thanks

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@abjaffrey 

the API user should have read access to that table

Check the table level read ACL on em_alert and give that role and then it will work fine

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@abjaffrey 

the API user should have read access to that table

Check the table level read ACL on em_alert and give that role and then it will work fine

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@abjaffrey 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Rajesh Chopade1
Mega Sage

hi @abjaffrey 

error message indicates that the user attempting to access the em_alert table through the API does not have the necessary permissions. To resolve this issue, you need to ensure that the user (or the system user for the API request) has the correct roles and access rights to interact with the em_alert table.

Ensure that the user has the appropriate Read access control for the em_alert table.

 

I hope my answer helps you to resolve your issue, if yes please mark my answer helpful and correct.

thank you

Rajesh