---
title: Examples of webservices usage
slug: dev-en/examples-of-webservices-usage
description: Learn how to validate requester permissions in CITSmart and configure settings in the "request_create" Webservice. This document includes step-by-step instructions and an example call to the service. Discover a new method to register users to specific gro
docTags: 
createdAt: 2022-03-07T15:14:54.000Z
---

## Validation

Validate if the requester has permission to register a request with the chosen activity:

This web service allows <font color="#3b9f0f">**CITSmart** </font>to validate whether the ticket requesters are allowed to register a request with an activity defined by them.

## Before getting started

- [x] Configure WebService Operation: request\_create
- [x] Configure contracts, groups, flows, and permissions.

## How to access it

1. Access the URL: /citsmart/services/request/create

## Procedure

1. It is necessary to configure in the Webservice "request\_create":
   - The service property name must have the name of an activity that is active and in production in the portfolio;
   - the syncronize property must be true for a user to be registered;
   - parameter 45 - LDAP - ID Default Group must be configured with a group that has permission to record requests
     in the group, contract, and flow of requests that will be registered.

:::hint{type="warning"}
**ATTENTION:** A method has been added, which registers the new user to the group set in parameter.45 = LDAP - Default Group ID, which is registered at the time WebServide request\_create is started.This way, the new employee receives the permission settings from this group.

- the numberOrigin field must be completed in sequentially, as there is a validation that prevents the registration of a request when the ticket sends an already sent numberOrigin;
:::

1. Some settings in this WebService should be as follows:
   - synchronize"\:true,
   - Service must have the property: "name": "Failure - Event Mgmt.";

*Example of call*

```sh
    {
    "sessionID":"61ec91e9-5397-466c-a342-08bbcd0e76a8",
    "synchronize":true,
    "sourceRequest":{
      "userID":"UserRegistered",
      "type":"I",
      "description": "Failure - Event Mgmt.",
      "contact":{
         "name":"User Registered",
         "phoneNumber":"000000000000",
         "email":"user@citsmart.com",
         "department":"CR 07.014/13.027 - SM Team: Development and Innovation (HSM)"
      },
      "service":{
         "code":"170",
         "name": "Failure - Event Mgmt.",
        "category":{
          "name":"[CITSmart] Products"
        }
      },
      "contractID":"2",
      "numberOrigin":"52362"
    }
    }
```

