Getting Task list from Microsoft Graph with app-only scopes -


is possible retrieve task lists using microsoft graph api (http://graph.microsoft.io/docs/api-reference/beta/api/task_list) in service app?

i can request token has of following scopes:

  • calendars.read
  • calendars.readwrite
  • contacts.read
  • directory.accessasuser.all
  • directory.read
  • list item
  • directory.read.all
  • directory.readwrite.all
  • email
  • files.read
  • files.read.selected
  • group.read.all
  • group.readwrite.all
  • mail.read
  • mail.send
  • notes.create
  • notes.read
  • notes.read.all
  • notes.readwrite.all
  • offline_access
  • openid
  • people.read
  • profile
  • sites.read.all
  • tasks.readwrite
  • user.read
  • user.read.all
  • user.readbasic.all
  • user.readwrite
  • user.readwrite.all
  • user_impersonation

i able lists of users, groups, applications , other entities, requests tasks or plans endpoints return following error:

{   "error": {     "code": "unknownerror",     "message": "<!doctype html public \"-//w3c//dtd xhtml 1.0 strict//en\" \"http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\r\n<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\"/>\r\n<title>401 - unauthorized: access denied due invalid credentials.</title>\r\n<style type=\"text/css\">\r\n<!--\r\nbody{margin:0;font-size:.7em;font-family:verdana, arial, helvetica, sans-serif;background:#eeeeee;}\r\nfieldset{padding:0 15px 10px 15px;} \r\nh1{font-size:2.4em;margin:0;color:#fff;}\r\nh2{font-size:1.7em;margin:0;color:#cc0000;} \r\nh3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} \r\n#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:\"trebuchet ms\", verdana, sans-serif;color:#fff;\r\nbackground-color:#555555;}\r\n#content{margin:0 0 0 2%;position:relative;}\r\n.content-container{background:#fff;width:96%;margin-top:8px;padding:10px;position:relative;}\r\n-->\r\n</style>\r\n</head>\r\n<body>\r\n<div id=\"header\"><h1>server error</h1></div>\r\n<div id=\"content\">\r\n <div class=\"content-container\"><fieldset>\r\n  <h2>401 - unauthorized: access denied due invalid credentials.</h2>\r\n  <h3>you not have permission view directory or page using credentials supplied.</h3>\r\n </fieldset></div>\r\n</div>\r\n</body>\r\n</html>\r\n",     "innererror": {       "request-id": "d0d7d970-ff88-4af9-93d3-8b8d4acfabf0",       "date": "2016-01-28t12:46:31"     }   } } 

my expectation group.readwrite.all inherited app-only directory.readwrite.all, task.readwrite should able see tasks , plans.

is there required permission or setting we’ve missed?

retrieval of tasks/plans not supported in service-only (app-only) context. please use user delegation context (app+user) instead.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -