---
title: "How can you ensure that only authorized users access your Web service?"  
description: "How can you ensure that only authorized users access your Web service?"  
author: "Sumit Kesarwani"  
published: 2014-08-26  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/2040/how-can-you-ensure-that-only-authorized-users-access-your-web-service  
category: "wcf"  
tags: ["wcf"]  
reading_time: 1 minute  

---

# How can you ensure that only authorized users access your Web service?

You should use the <authorization> element to ensure that only authorized users access your Web service. This element allows or denies access to your Web service according to their role.

## Answers

### Answer by Sumit Kesarwani

You should use the <authorization> element to ensure that only authorized users access your Web service. This element allows or denies access to your Web service according to their role.


---

Original Source: https://www.mindstick.com/interview/2040/how-can-you-ensure-that-only-authorized-users-access-your-web-service

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
