Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  API for Alert Rules - Locating an Alert Rule

    Posted 17 days ago

    Hi all,

    I have a user in our org that has been setup in an Alert rule and they're constantly being pinged.  This is not a rule they have setup, I have gone into their Alert Rules and nothing exists.  

    I've had a look at some of the Alerting APIs but I'm trying to figure out if its possible to find out who owns this alert they're subscribed to.  I haven't had much luck with some of the API's (/api/v2/alerting/rules/query), i was hoping this would give me a list of ruleIDs that i could query.

    Am I going about this the right way, or how can I figure out who this rule is associated to?

    Thanks,


    #PlatformAPI

    ------------------------------
    Robert Niblock
    Contact Centre Technology Analyst
    ------------------------------


  • 2.  RE: API for Alert Rules - Locating an Alert Rule

    Posted 16 days ago

    Hi @Robert Niblock

    Did you tried to run the API with these parameters? Here I received a list of rules and is possible to get the owner with the "user" info in the response.

    {
      "ruleType": "All",
      "queryType": "Info"
    }





    ------------------------------
    Debora Lopes
    ------------------------------



  • 3.  RE: API for Alert Rules - Locating an Alert Rule

    Posted 16 days ago

    Hi Debora,

    I can see my rules appear when I query this API.  However it's not a rule that I or the affected end user has created, its another user in the org that we don't know at this point.

     I'm not sure if there's a query to see all existing rules in an Org, however if I cant track this down, it might just be a case that I'll have to delete the user and recreate their account which hopefully should disassociate any rules with them.



    ------------------------------
    Robert Niblock
    Contact Centre Technology Analyst
    ------------------------------



  • 4.  RE: API for Alert Rules - Locating an Alert Rule

    Posted 15 days ago

    Robert, 

    I checked the documentation and is saying we only be able to see our own alerting rules in UI and API.

    Try to 'hack' the system checking if something logged at network level when you click on 'View Alert Rule' is those alerts the users is receiving.

    If you can receive these informations, maybe you can track the user by userId.



    ------------------------------
    Debora Lopes
    ------------------------------



  • 5.  RE: API for Alert Rules - Locating an Alert Rule

    Posted 15 days ago

    Thanks Debora.

    Users unfortunately don't have access to Developer tools in their browser which would be helpful here.  I might have to resort to deleting and recreating their account from scratch :(

    The other strange thing I noticed with their alerts is that they don't populate in the inbox like you have in your screenshot.  Very unusual.



    ------------------------------
    Robert Niblock
    Contact Centre Technology Analyst
    ------------------------------