Confused on "Alarm History" and "Alarm Analysis" pages of Demo project

I've found the reason and fixed it based on this link: ERROR(500): Error executing function 'RunQuery': The current user does not have the required roles for this operation - #3 by MoisesZV