{"action":"created","issue":{"url":"https://api.github.com/repos/OfficeDev/PnP-Sites-Core/issues/200","labels_url":"https://api.github.com/repos/OfficeDev/PnP-Sites-Core/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/PnP-Sites-Core/issues/200/comments","events_url":"https://api.github.com/repos/OfficeDev/PnP-Sites-Core/issues/200/events","html_url":"https://github.com/OfficeDev/PnP-Sites-Core/issues/200","id":117610776,"number":200,"title":"Bug provisioning pnp:DataRows","user":{"login":"luismanez","id":9392197,"avatar_url":"https://avatars.githubusercontent.com/u/9392197?v=3","gravatar_id":"","url":"https://api.github.com/users/luismanez","html_url":"https://github.com/luismanez","followers_url":"https://api.github.com/users/luismanez/followers","following_url":"https://api.github.com/users/luismanez/following{/other_user}","gists_url":"https://api.github.com/users/luismanez/gists{/gist_id}","starred_url":"https://api.github.com/users/luismanez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luismanez/subscriptions","organizations_url":"https://api.github.com/users/luismanez/orgs","repos_url":"https://api.github.com/users/luismanez/repos","events_url":"https://api.github.com/users/luismanez/events{/privacy}","received_events_url":"https://api.github.com/users/luismanez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-18T15:27:17Z","updated_at":"2015-11-27T13:19:14Z","closed_at":null,"body":"If you try to provisioning List items using <pnp:DataRows> node, you'll find that each item has custom security permissions, and are only visible to the user that did the provisioning.\r\n\r\nThis is because this If in **ObjectListInstanceDataRows** handler:\r\n\r\n```c#\r\n  if (dataRow.Security != null)\r\n  {\r\n    listitem.SetSecurity(parser, dataRow.Security);\r\n  }\r\n```\r\n\r\nHowever, the dataRow.Security is never null, because the constructor is doing:\r\n```c#\r\n  if (security != null)\r\n  {\r\n    this.Security = security;\r\n  }\r\n````\r\nand in the class, the Security property is always initialized as:\r\n```c#\r\n  private ObjectSecurity _objectSecurity = new ObjectSecurity();\r\n```\r\n\r\nI have a PR ready to publish that fixes this issue."},"comment":{"url":"https://api.github.com/repos/OfficeDev/PnP-Sites-Core/issues/comments/160137787","html_url":"https://github.com/OfficeDev/PnP-Sites-Core/issues/200#issuecomment-160137787","issue_url":"https://api.github.com/repos/OfficeDev/PnP-Sites-Core/issues/200","id":160137787,"user":{"login":"jeroenvanlieshout","id":13566988,"avatar_url":"https://avatars.githubusercontent.com/u/13566988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeroenvanlieshout","html_url":"https://github.com/jeroenvanlieshout","followers_url":"https://api.github.com/users/jeroenvanlieshout/followers","following_url":"https://api.github.com/users/jeroenvanlieshout/following{/other_user}","gists_url":"https://api.github.com/users/jeroenvanlieshout/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroenvanlieshout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroenvanlieshout/subscriptions","organizations_url":"https://api.github.com/users/jeroenvanlieshout/orgs","repos_url":"https://api.github.com/users/jeroenvanlieshout/repos","events_url":"https://api.github.com/users/jeroenvanlieshout/events{/privacy}","received_events_url":"https://api.github.com/users/jeroenvanlieshout/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T13:19:14Z","updated_at":"2015-11-27T13:19:14Z","body":"Also opened #216. This issue also occurs on Pages."}}