Unfortunately no, the Org/Network ID is not shown in the URL of the dashboard.
To yet the org ID of the organization you have to use the API, to get all orgnanizations you have access to, and then filter the one you need. Then you use the org ID, to get all the network ID in that organization, of which you'll have to filter again to the that one specific network ID you wish to work on.
That's already two API calls just to get the started on the actual task at hand.
Bear in mind, that can be put in the script, but I like to do some one-liners first to make sure I get what I expect. Or just get that single piece of information that I need, via the API.
LinkedIn :::
https://blog.rhbirkelund.dk/Like what you see? - Give a Kudo ## Did it answer your question? - Mark it as a Solution
🙂All code examples are provided as is. Responsibility for Code execution lies solely your own.