Forum Discussion
Hi Dhiraj,
Metrics are permissions dependent, so if the user in question has created posts in an area of the community that is not public and you are not permitted to access then the recent posts page will not show those posts and they will not appear as part of that count.
If you're performing the API call using RESTADMIN instead of just REST then the data returned will be different. The recent posts page uses the context of the user thats viewing the page to retrieve data whereas the RESTADMIN call will pull the data as an admin would see it.
Try changing from RESTADMIN to REST when calling the API and let us know if you see it matching up (you won't need to do the calculation to remove deleted posts with the standard REST call as this is already factored in to the figure returned).
Related Content
- 7 years ago
- 11 years ago