GET Api/Users/GetByProfile?idRol={idRol}

Motodo para extraer todos los usuarios de la base de datos

Request Information

URI Parameters

NameDescriptionTypeAdditional information
idRol

integer

Required

Body Parameters

None.

Response Information

Resource Description

coleccion de Usuarios

Collection of User
NameDescriptionTypeAdditional information
IdUsuario

integer

None.

nombre

string

None.

apellido

string

None.

email

string

None.

IdRol

integer

None.

IdUser_n4assigned

integer

None.

IdUser_n5assigned

integer

None.

IdUser_n6assigned

integer

None.

Idh_cliente

string

None.

nombre_cliente

string

None.

Id_Posicion

integer

None.

id_location

integer

None.

Id_status

boolean

None.

IdZonaComercial

integer

None.

IdUsuario_registro

integer

None.

registration_date

date

None.

last_activity

date

None.

aceptotyc

boolean

None.

fecha_hora_aceptotyc

date

None.

acepto_privacidad_datos

boolean

None.

fecha_hora_acepto_privacidad_datos

date

None.

Avatar

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "IdUsuario": 1,
    "nombre": "sample string 2",
    "apellido": "sample string 3",
    "email": "sample string 4",
    "IdRol": 5,
    "IdUser_n4assigned": 1,
    "IdUser_n5assigned": 1,
    "IdUser_n6assigned": 1,
    "Idh_cliente": "sample string 6",
    "nombre_cliente": "sample string 7",
    "Id_Posicion": 1,
    "id_location": 1,
    "Id_status": true,
    "IdZonaComercial": 1,
    "IdUsuario_registro": 1,
    "registration_date": "2026-02-14T17:51:41.9420109-06:00",
    "last_activity": "2026-02-14T17:51:41.9420109-06:00",
    "aceptotyc": true,
    "fecha_hora_aceptotyc": "2026-02-14T17:51:41.9420109-06:00",
    "acepto_privacidad_datos": true,
    "fecha_hora_acepto_privacidad_datos": "2026-02-14T17:51:41.9420109-06:00",
    "Avatar": "sample string 10"
  },
  {
    "IdUsuario": 1,
    "nombre": "sample string 2",
    "apellido": "sample string 3",
    "email": "sample string 4",
    "IdRol": 5,
    "IdUser_n4assigned": 1,
    "IdUser_n5assigned": 1,
    "IdUser_n6assigned": 1,
    "Idh_cliente": "sample string 6",
    "nombre_cliente": "sample string 7",
    "Id_Posicion": 1,
    "id_location": 1,
    "Id_status": true,
    "IdZonaComercial": 1,
    "IdUsuario_registro": 1,
    "registration_date": "2026-02-14T17:51:41.9420109-06:00",
    "last_activity": "2026-02-14T17:51:41.9420109-06:00",
    "aceptotyc": true,
    "fecha_hora_aceptotyc": "2026-02-14T17:51:41.9420109-06:00",
    "acepto_privacidad_datos": true,
    "fecha_hora_acepto_privacidad_datos": "2026-02-14T17:51:41.9420109-06:00",
    "Avatar": "sample string 10"
  }
]

application/xml, text/xml

Sample:
<ArrayOfUser xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <User>
    <IdUsuario>1</IdUsuario>
    <nombre>sample string 2</nombre>
    <apellido>sample string 3</apellido>
    <email>sample string 4</email>
    <IdRol>5</IdRol>
    <IdUser_n4assigned>1</IdUser_n4assigned>
    <IdUser_n5assigned>1</IdUser_n5assigned>
    <IdUser_n6assigned>1</IdUser_n6assigned>
    <Idh_cliente>sample string 6</Idh_cliente>
    <nombre_cliente>sample string 7</nombre_cliente>
    <Id_Posicion>1</Id_Posicion>
    <id_location>1</id_location>
    <Id_status>true</Id_status>
    <IdZonaComercial>1</IdZonaComercial>
    <IdUsuario_registro>1</IdUsuario_registro>
    <registration_date>2026-02-14T17:51:41.9420109-06:00</registration_date>
    <last_activity>2026-02-14T17:51:41.9420109-06:00</last_activity>
    <aceptotyc>true</aceptotyc>
    <fecha_hora_aceptotyc>2026-02-14T17:51:41.9420109-06:00</fecha_hora_aceptotyc>
    <acepto_privacidad_datos>true</acepto_privacidad_datos>
    <fecha_hora_acepto_privacidad_datos>2026-02-14T17:51:41.9420109-06:00</fecha_hora_acepto_privacidad_datos>
    <Avatar>sample string 10</Avatar>
  </User>
  <User>
    <IdUsuario>1</IdUsuario>
    <nombre>sample string 2</nombre>
    <apellido>sample string 3</apellido>
    <email>sample string 4</email>
    <IdRol>5</IdRol>
    <IdUser_n4assigned>1</IdUser_n4assigned>
    <IdUser_n5assigned>1</IdUser_n5assigned>
    <IdUser_n6assigned>1</IdUser_n6assigned>
    <Idh_cliente>sample string 6</Idh_cliente>
    <nombre_cliente>sample string 7</nombre_cliente>
    <Id_Posicion>1</Id_Posicion>
    <id_location>1</id_location>
    <Id_status>true</Id_status>
    <IdZonaComercial>1</IdZonaComercial>
    <IdUsuario_registro>1</IdUsuario_registro>
    <registration_date>2026-02-14T17:51:41.9420109-06:00</registration_date>
    <last_activity>2026-02-14T17:51:41.9420109-06:00</last_activity>
    <aceptotyc>true</aceptotyc>
    <fecha_hora_aceptotyc>2026-02-14T17:51:41.9420109-06:00</fecha_hora_aceptotyc>
    <acepto_privacidad_datos>true</acepto_privacidad_datos>
    <fecha_hora_acepto_privacidad_datos>2026-02-14T17:51:41.9420109-06:00</fecha_hora_acepto_privacidad_datos>
    <Avatar>sample string 10</Avatar>
  </User>
</ArrayOfUser>