Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
The API to check the user's custom status is not available. Someone already gave feedback to Cisco to make this feature available and you can vote for it: