Advertisement
mteodorovic

kapua user permission

Jun 5th, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 15.65 KB | None | 0 0
  1.  
  2. curl -X GET --header 'Content-Type: application/json' --header 'Accept: application/json' --header "Authorization: Bearer $TOKEN"  'http://kapua.solidsense.tk:8081/v1/fjf_5cVAh0s/users/ZSNnttc46kg' | json_pp
  3. {
  4.    "status" : "ENABLED",
  5.    "optlock" : 1,
  6.    "name" : "kost",
  7.    "modifiedOn" : "2019-06-05T13:39:09.832Z",
  8.    "email" : "kosta@mainflux.com",
  9.    "userType" : "EXTERNAL",
  10.    "scopeId" : "fjf_5cVAh0s",
  11.    "createdBy" : "AQ",
  12.    "modifiedBy" : "AQ",
  13.    "type" : "user",
  14.    "createdOn" : "2019-06-05T13:39:09.832Z",
  15.    "id" : "ZSNnttc46kg",
  16.    "externalId" : "kosta@mainflux.com"
  17. }
  18.  
  19.  
  20.  
  21.  curl -X GET --header 'Content-Type: application/json' --header 'Accept: application/json' --header "Authorization: Bearer $TOKEN"  'http://kapua.solidsense.tk:8081/v1/fjf_5cVAh0s/accessinfos/JsrMl0eKhrw' | json_pp
  22.  
  23. {
  24.    "type" : "accessInfo",
  25.    "modifiedOn" : "2019-06-05T13:39:09.851Z",
  26.    "createdBy" : "AQ",
  27.    "userId" : "ZSNnttc46kg",
  28.    "optlock" : 1,
  29.    "id" : "JsrMl0eKhrw",
  30.    "scopeId" : "fjf_5cVAh0s",
  31.    "createdOn" : "2019-06-05T13:39:09.851Z",
  32.    "modifiedBy" : "AQ"
  33. }
  34.  
  35. --------------
  36.  
  37. curl -X GET --header 'Content-Type: application/json' --header 'Accept: application/json' --header "Authorization: Bearer $TOKEN"  'http://kapua.solidsense.tk:8081/v1/fjf_5cVAh0s/accessinfos/JsrMl0eKhrw/permissions'
  38.  
  39. {
  40.    "limitExceeded" : false,
  41.    "type" : "accessPermissionListResult",
  42.    "items" : [
  43.       {
  44.          "createdOn" : "2019-06-05T13:39:09.853Z",
  45.          "id" : "CZ7CSHM-64U",
  46.          "createdBy" : "AQ",
  47.          "scopeId" : "fjf_5cVAh0s",
  48.          "accessInfoId" : "JsrMl0eKhrw",
  49.          "type" : "accessPermission",
  50.          "permission" : {
  51.             "forwardable" : false,
  52.             "domain" : "domain",
  53.             "targetScopeId" : "fjf_5cVAh0s",
  54.             "action" : "read"
  55.          }
  56.       },
  57.       {
  58.          "id" : "GMguCuyZE4I",
  59.          "createdOn" : "2019-06-05T13:39:09.855Z",
  60.          "scopeId" : "fjf_5cVAh0s",
  61.          "createdBy" : "AQ",
  62.          "permission" : {
  63.             "domain" : "device_management",
  64.             "forwardable" : false,
  65.             "targetScopeId" : "fjf_5cVAh0s",
  66.             "action" : "execute"
  67.          },
  68.          "type" : "accessPermission",
  69.          "accessInfoId" : "JsrMl0eKhrw"
  70.       },
  71.       {
  72.          "scopeId" : "fjf_5cVAh0s",
  73.          "createdBy" : "AQ",
  74.          "createdOn" : "2019-06-05T13:39:09.857Z",
  75.          "id" : "Z5xwgNVDGz0",
  76.          "permission" : {
  77.             "forwardable" : false,
  78.             "domain" : "credential",
  79.             "targetScopeId" : "fjf_5cVAh0s",
  80.             "action" : "read"
  81.          },
  82.          "type" : "accessPermission",
  83.          "accessInfoId" : "JsrMl0eKhrw"
  84.       },
  85.       {
  86.          "createdBy" : "AQ",
  87.          "scopeId" : "fjf_5cVAh0s",
  88.          "createdOn" : "2019-06-05T13:39:09.859Z",
  89.          "id" : "MbGEOYO_lfY",
  90.          "accessInfoId" : "JsrMl0eKhrw",
  91.          "type" : "accessPermission",
  92.          "permission" : {
  93.             "forwardable" : false,
  94.             "domain" : "datastore",
  95.             "targetScopeId" : "fjf_5cVAh0s",
  96.             "action" : "write"
  97.          }
  98.       },
  99.       {
  100.          "scopeId" : "fjf_5cVAh0s",
  101.          "createdBy" : "AQ",
  102.          "id" : "LKPtYtbFNI4",
  103.          "createdOn" : "2019-06-05T13:39:09.860Z",
  104.          "permission" : {
  105.             "action" : "delete",
  106.             "targetScopeId" : "fjf_5cVAh0s",
  107.             "forwardable" : false,
  108.             "domain" : "device"
  109.          },
  110.          "type" : "accessPermission",
  111.          "accessInfoId" : "JsrMl0eKhrw"
  112.       },
  113.       {
  114.          "scopeId" : "fjf_5cVAh0s",
  115.          "createdBy" : "AQ",
  116.          "id" : "d9vZj2w08Ho",
  117.          "createdOn" : "2019-06-05T13:39:09.862Z",
  118.          "permission" : {
  119.             "domain" : "device",
  120.             "forwardable" : false,
  121.             "targetScopeId" : "fjf_5cVAh0s",
  122.             "action" : "read"
  123.          },
  124.          "type" : "accessPermission",
  125.          "accessInfoId" : "JsrMl0eKhrw"
  126.       },
  127.       {
  128.          "permission" : {
  129.             "action" : "write",
  130.             "targetScopeId" : "fjf_5cVAh0s",
  131.             "forwardable" : false,
  132.             "domain" : "device_event"
  133.          },
  134.          "accessInfoId" : "JsrMl0eKhrw",
  135.          "type" : "accessPermission",
  136.          "id" : "A4VXO5j24D8",
  137.          "createdOn" : "2019-06-05T13:39:09.864Z",
  138.          "scopeId" : "fjf_5cVAh0s",
  139.          "createdBy" : "AQ"
  140.       },
  141.       {
  142.          "type" : "accessPermission",
  143.          "accessInfoId" : "JsrMl0eKhrw",
  144.          "permission" : {
  145.             "targetScopeId" : "fjf_5cVAh0s",
  146.             "action" : "write",
  147.             "forwardable" : false,
  148.             "domain" : "device_connection"
  149.          },
  150.          "createdOn" : "2019-06-05T13:39:09.866Z",
  151.          "id" : "N4tYQg3osVk",
  152.          "createdBy" : "AQ",
  153.          "scopeId" : "fjf_5cVAh0s"
  154.       },
  155.       {
  156.          "accessInfoId" : "JsrMl0eKhrw",
  157.          "type" : "accessPermission",
  158.          "permission" : {
  159.             "targetScopeId" : "fjf_5cVAh0s",
  160.             "action" : "write",
  161.             "domain" : "group",
  162.             "forwardable" : false
  163.          },
  164.          "id" : "cnxJhFEd2r0",
  165.          "createdOn" : "2019-06-05T13:39:09.868Z",
  166.          "createdBy" : "AQ",
  167.          "scopeId" : "fjf_5cVAh0s"
  168.       },
  169.       {
  170.          "permission" : {
  171.             "domain" : "role",
  172.             "forwardable" : false,
  173.             "targetScopeId" : "fjf_5cVAh0s",
  174.             "action" : "read"
  175.          },
  176.          "type" : "accessPermission",
  177.          "accessInfoId" : "JsrMl0eKhrw",
  178.          "createdOn" : "2019-06-05T13:39:09.870Z",
  179.          "id" : "GrzLgOrL1BI",
  180.          "scopeId" : "fjf_5cVAh0s",
  181.          "createdBy" : "AQ"
  182.       },
  183.       {
  184.          "accessInfoId" : "JsrMl0eKhrw",
  185.          "type" : "accessPermission",
  186.          "permission" : {
  187.             "forwardable" : false,
  188.             "domain" : "group",
  189.             "action" : "read",
  190.             "targetScopeId" : "fjf_5cVAh0s"
  191.          },
  192.          "id" : "H7Lkk2D4RkE",
  193.          "createdOn" : "2019-06-05T13:39:09.872Z",
  194.          "createdBy" : "AQ",
  195.          "scopeId" : "fjf_5cVAh0s"
  196.       },
  197.       {
  198.          "id" : "X3sClhCAgJ4",
  199.          "createdOn" : "2019-06-05T13:39:09.873Z",
  200.          "scopeId" : "fjf_5cVAh0s",
  201.          "createdBy" : "AQ",
  202.          "permission" : {
  203.             "targetScopeId" : "fjf_5cVAh0s",
  204.             "action" : "delete",
  205.             "domain" : "datastore",
  206.             "forwardable" : false
  207.          },
  208.          "type" : "accessPermission",
  209.          "accessInfoId" : "JsrMl0eKhrw"
  210.       },
  211.       {
  212.          "createdOn" : "2019-06-05T13:39:09.875Z",
  213.          "id" : "eG6-2paZmyY",
  214.          "createdBy" : "AQ",
  215.          "scopeId" : "fjf_5cVAh0s",
  216.          "accessInfoId" : "JsrMl0eKhrw",
  217.          "type" : "accessPermission",
  218.          "permission" : {
  219.             "forwardable" : false,
  220.             "domain" : "account",
  221.             "action" : "write",
  222.             "targetScopeId" : "fjf_5cVAh0s"
  223.          }
  224.       },
  225.       {
  226.          "scopeId" : "fjf_5cVAh0s",
  227.          "createdBy" : "AQ",
  228.          "id" : "RSGNUyrHM30",
  229.          "createdOn" : "2019-06-05T13:39:09.877Z",
  230.          "permission" : {
  231.             "targetScopeId" : "fjf_5cVAh0s",
  232.             "action" : "delete",
  233.             "domain" : "device_event",
  234.             "forwardable" : false
  235.          },
  236.          "accessInfoId" : "JsrMl0eKhrw",
  237.          "type" : "accessPermission"
  238.       },
  239.       {
  240.          "permission" : {
  241.             "forwardable" : false,
  242.             "domain" : "role",
  243.             "targetScopeId" : "fjf_5cVAh0s",
  244.             "action" : "write"
  245.          },
  246.          "type" : "accessPermission",
  247.          "accessInfoId" : "JsrMl0eKhrw",
  248.          "scopeId" : "fjf_5cVAh0s",
  249.          "createdBy" : "AQ",
  250.          "createdOn" : "2019-06-05T13:39:09.879Z",
  251.          "id" : "MCMB6qqml3o"
  252.       },
  253.       {
  254.          "id" : "Ewj_hb3D2Sc",
  255.          "createdOn" : "2019-06-05T13:39:09.881Z",
  256.          "createdBy" : "AQ",
  257.          "scopeId" : "fjf_5cVAh0s",
  258.          "accessInfoId" : "JsrMl0eKhrw",
  259.          "type" : "accessPermission",
  260.          "permission" : {
  261.             "domain" : "account",
  262.             "forwardable" : false,
  263.             "action" : "read",
  264.             "targetScopeId" : "fjf_5cVAh0s"
  265.          }
  266.       },
  267.       {
  268.          "createdBy" : "AQ",
  269.          "scopeId" : "fjf_5cVAh0s",
  270.          "id" : "O2G2pgosfJM",
  271.          "createdOn" : "2019-06-05T13:39:09.883Z",
  272.          "accessInfoId" : "JsrMl0eKhrw",
  273.          "type" : "accessPermission",
  274.          "permission" : {
  275.             "forwardable" : false,
  276.             "domain" : "credential",
  277.             "targetScopeId" : "fjf_5cVAh0s",
  278.             "action" : "write"
  279.          }
  280.       },
  281.       {
  282.          "createdOn" : "2019-06-05T13:39:09.885Z",
  283.          "id" : "RHzalLdZLeI",
  284.          "scopeId" : "fjf_5cVAh0s",
  285.          "createdBy" : "AQ",
  286.          "permission" : {
  287.             "domain" : "device_connection",
  288.             "forwardable" : false,
  289.             "targetScopeId" : "fjf_5cVAh0s",
  290.             "action" : "read"
  291.          },
  292.          "type" : "accessPermission",
  293.          "accessInfoId" : "JsrMl0eKhrw"
  294.       },
  295.       {
  296.          "permission" : {
  297.             "targetScopeId" : "fjf_5cVAh0s",
  298.             "action" : "delete",
  299.             "forwardable" : false,
  300.             "domain" : "account"
  301.          },
  302.          "accessInfoId" : "JsrMl0eKhrw",
  303.          "type" : "accessPermission",
  304.          "scopeId" : "fjf_5cVAh0s",
  305.          "createdBy" : "AQ",
  306.          "createdOn" : "2019-06-05T13:39:09.887Z",
  307.          "id" : "B79rEMPOY8I"
  308.       },
  309.       {
  310.          "createdBy" : "AQ",
  311.          "scopeId" : "fjf_5cVAh0s",
  312.          "id" : "N262ru905l8",
  313.          "createdOn" : "2019-06-05T13:39:09.889Z",
  314.          "accessInfoId" : "JsrMl0eKhrw",
  315.          "type" : "accessPermission",
  316.          "permission" : {
  317.             "domain" : "role",
  318.             "forwardable" : false,
  319.             "targetScopeId" : "fjf_5cVAh0s",
  320.             "action" : "delete"
  321.          }
  322.       },
  323.       {
  324.          "createdBy" : "AQ",
  325.          "scopeId" : "fjf_5cVAh0s",
  326.          "createdOn" : "2019-06-05T13:39:09.891Z",
  327.          "id" : "MseP75KKcc4",
  328.          "accessInfoId" : "JsrMl0eKhrw",
  329.          "type" : "accessPermission",
  330.          "permission" : {
  331.             "targetScopeId" : "fjf_5cVAh0s",
  332.             "action" : "write",
  333.             "forwardable" : false,
  334.             "domain" : "domain"
  335.          }
  336.       },
  337.       {
  338.          "accessInfoId" : "JsrMl0eKhrw",
  339.          "type" : "accessPermission",
  340.          "permission" : {
  341.             "targetScopeId" : "fjf_5cVAh0s",
  342.             "action" : "read",
  343.             "domain" : "device_management",
  344.             "forwardable" : false
  345.          },
  346.          "createdOn" : "2019-06-05T13:39:09.892Z",
  347.          "id" : "do-kVp2czH4",
  348.          "createdBy" : "AQ",
  349.          "scopeId" : "fjf_5cVAh0s"
  350.       },
  351.       {
  352.          "createdOn" : "2019-06-05T13:39:09.894Z",
  353.          "id" : "cJD0YjyM2Do",
  354.          "scopeId" : "fjf_5cVAh0s",
  355.          "createdBy" : "AQ",
  356.          "permission" : {
  357.             "action" : "write",
  358.             "targetScopeId" : "fjf_5cVAh0s",
  359.             "forwardable" : false,
  360.             "domain" : "device_management"
  361.          },
  362.          "type" : "accessPermission",
  363.          "accessInfoId" : "JsrMl0eKhrw"
  364.       },
  365.       {
  366.          "permission" : {
  367.             "action" : "read",
  368.             "targetScopeId" : "fjf_5cVAh0s",
  369.             "forwardable" : false,
  370.             "domain" : "user"
  371.          },
  372.          "accessInfoId" : "JsrMl0eKhrw",
  373.          "type" : "accessPermission",
  374.          "scopeId" : "fjf_5cVAh0s",
  375.          "createdBy" : "AQ",
  376.          "createdOn" : "2019-06-05T13:39:09.895Z",
  377.          "id" : "EveUeMlDxyc"
  378.       },
  379.       {
  380.          "permission" : {
  381.             "forwardable" : false,
  382.             "domain" : "credential",
  383.             "targetScopeId" : "fjf_5cVAh0s",
  384.             "action" : "delete"
  385.          },
  386.          "accessInfoId" : "JsrMl0eKhrw",
  387.          "type" : "accessPermission",
  388.          "createdOn" : "2019-06-05T13:39:09.896Z",
  389.          "id" : "FAzw5Bhcz2E",
  390.          "scopeId" : "fjf_5cVAh0s",
  391.          "createdBy" : "AQ"
  392.       },
  393.       {
  394.          "permission" : {
  395.             "forwardable" : false,
  396.             "domain" : "user",
  397.             "action" : "write",
  398.             "targetScopeId" : "fjf_5cVAh0s"
  399.          },
  400.          "type" : "accessPermission",
  401.          "accessInfoId" : "JsrMl0eKhrw",
  402.          "createdOn" : "2019-06-05T13:39:09.898Z",
  403.          "id" : "ClbTmx7RWOs",
  404.          "scopeId" : "fjf_5cVAh0s",
  405.          "createdBy" : "AQ"
  406.       },
  407.       {
  408.          "id" : "RWMGmJM8t2A",
  409.          "createdOn" : "2019-06-05T13:39:09.899Z",
  410.          "createdBy" : "AQ",
  411.          "scopeId" : "fjf_5cVAh0s",
  412.          "type" : "accessPermission",
  413.          "accessInfoId" : "JsrMl0eKhrw",
  414.          "permission" : {
  415.             "forwardable" : false,
  416.             "domain" : "device",
  417.             "action" : "write",
  418.             "targetScopeId" : "fjf_5cVAh0s"
  419.          }
  420.       },
  421.       {
  422.          "createdBy" : "AQ",
  423.          "scopeId" : "fjf_5cVAh0s",
  424.          "createdOn" : "2019-06-05T13:39:09.901Z",
  425.          "id" : "VnKGUHegqog",
  426.          "type" : "accessPermission",
  427.          "accessInfoId" : "JsrMl0eKhrw",
  428.          "permission" : {
  429.             "domain" : "device_event",
  430.             "forwardable" : false,
  431.             "targetScopeId" : "fjf_5cVAh0s",
  432.             "action" : "read"
  433.          }
  434.       },
  435.       {
  436.          "permission" : {
  437.             "domain" : "datastore",
  438.             "forwardable" : false,
  439.             "action" : "read",
  440.             "targetScopeId" : "fjf_5cVAh0s"
  441.          },
  442.          "accessInfoId" : "JsrMl0eKhrw",
  443.          "type" : "accessPermission",
  444.          "scopeId" : "fjf_5cVAh0s",
  445.          "createdBy" : "AQ",
  446.          "id" : "M3q5Ao0nAPQ",
  447.          "createdOn" : "2019-06-05T13:39:09.902Z"
  448.       },
  449.       {
  450.          "permission" : {
  451.             "domain" : "device_connection",
  452.             "forwardable" : false,
  453.             "targetScopeId" : "fjf_5cVAh0s",
  454.             "action" : "delete"
  455.          },
  456.          "type" : "accessPermission",
  457.          "accessInfoId" : "JsrMl0eKhrw",
  458.          "createdOn" : "2019-06-05T13:39:09.904Z",
  459.          "id" : "PrnW22jUEuo",
  460.          "scopeId" : "fjf_5cVAh0s",
  461.          "createdBy" : "AQ"
  462.       },
  463.       {
  464.          "scopeId" : "fjf_5cVAh0s",
  465.          "createdBy" : "AQ",
  466.          "createdOn" : "2019-06-05T13:39:09.909Z",
  467.          "id" : "Ofgv4eb54sQ",
  468.          "permission" : {
  469.             "domain" : "access_info",
  470.             "forwardable" : false,
  471.             "action" : "read",
  472.             "targetScopeId" : "fjf_5cVAh0s"
  473.          },
  474.          "accessInfoId" : "JsrMl0eKhrw",
  475.          "type" : "accessPermission"
  476.       },
  477.       {
  478.          "createdBy" : "AQ",
  479.          "scopeId" : "fjf_5cVAh0s",
  480.          "createdOn" : "2019-06-05T13:39:09.911Z",
  481.          "id" : "QzBtA8l7b-U",
  482.          "type" : "accessPermission",
  483.          "accessInfoId" : "JsrMl0eKhrw",
  484.          "permission" : {
  485.             "forwardable" : false,
  486.             "domain" : "group",
  487.             "targetScopeId" : "fjf_5cVAh0s",
  488.             "action" : "delete"
  489.          }
  490.       },
  491.       {
  492.          "id" : "NNYtdQb3xXE",
  493.          "createdOn" : "2019-06-05T13:39:09.913Z",
  494.          "createdBy" : "AQ",
  495.          "scopeId" : "fjf_5cVAh0s",
  496.          "type" : "accessPermission",
  497.          "accessInfoId" : "JsrMl0eKhrw",
  498.          "permission" : {
  499.             "action" : "write",
  500.             "targetScopeId" : "fjf_5cVAh0s",
  501.             "domain" : "access_info",
  502.             "forwardable" : false
  503.          }
  504.       }
  505.    ],
  506.    "size" : 33
  507. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement