cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get all clients in a group policy

SOLVED
Highlighted
Conversationalist

Get all clients in a group policy

Hello! What is the best way to get a list of all clients in a group policy? Or alternatively the group policy of all clients?

I've tried a couple things, but haven't found a great way to do this.

 

While Get Network Clients shows the 802.1x policies groupPolicy8021x if available (curiously, Get Network Client does not), neither include the Meraki group policy.

 

It appears the only way to get a client's group policy is to use Get Network Client Policy, which gives a Meraki groupPolicyId. However, this is a single-client endpoint, so I'd have to iterate and request that for each and every client in the network. For a network with 1500 clients in the timeframe, and the (reasonable) 5 requests per second rate limit, this would take about 5 minutes.

 

Is there a better way to do this?

 

If not, a question for the API team:

What is the feasibility of adding groupPolicyId to the GetNetworkClient/s endpoints?
Also, not as sure about this, but perhaps Get Network Group Policy could include an array of client IDs?

This would help with a couple previous posts as well:
Meraki API Noob - Adding a client to a group policy in multiple MR networks - Please help!

Apply device policy across multiple networks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Meraki Employee

Re: Get all clients in a group policy

Hi @cmtk, you're correct: there's not a direct way to do this currently and we are investigating adding this feature later. What can be done today is to iterate over the clients (as you mentioned) if there are known group policies assigned, and then keep track of those changes (along with using webhooks for any possible policy assignments made via dashboard UI) so that the process does not have to be repeated every so often.

Solutions Architect @ Cisco Meraki | API & Developer Ecosystem

View solution in original post

2 REPLIES 2
Highlighted
Meraki Employee

Re: Get all clients in a group policy

Hi @cmtk, you're correct: there's not a direct way to do this currently and we are investigating adding this feature later. What can be done today is to iterate over the clients (as you mentioned) if there are known group policies assigned, and then keep track of those changes (along with using webhooks for any possible policy assignments made via dashboard UI) so that the process does not have to be repeated every so often.

Solutions Architect @ Cisco Meraki | API & Developer Ecosystem

View solution in original post

Highlighted
Conversationalist

Re: Get all clients in a group policy

Thanks @chengineer! I was thinking about using webhooks or the Change log endpoint as well.

I look forward to those (potential) future feature updates.

Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.