{"action":"reopened","issue":{"url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/issues/139","labels_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/issues/139/comments","events_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/issues/139/events","html_url":"https://github.com/Jaspersoft/jrs-rest-java-client/issues/139","id":111560631,"number":139,"title":"Attributes service creates attributes, but do not associate permissions with it","user":{"login":"tmatveyeva","id":6714888,"avatar_url":"https://avatars.githubusercontent.com/u/6714888?v=3","gravatar_id":"","url":"https://api.github.com/users/tmatveyeva","html_url":"https://github.com/tmatveyeva","followers_url":"https://api.github.com/users/tmatveyeva/followers","following_url":"https://api.github.com/users/tmatveyeva/following{/other_user}","gists_url":"https://api.github.com/users/tmatveyeva/gists{/gist_id}","starred_url":"https://api.github.com/users/tmatveyeva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmatveyeva/subscriptions","organizations_url":"https://api.github.com/users/tmatveyeva/orgs","repos_url":"https://api.github.com/users/tmatveyeva/repos","events_url":"https://api.github.com/users/tmatveyeva/events{/privacy}","received_events_url":"https://api.github.com/users/tmatveyeva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-15T07:33:17Z","updated_at":"2015-10-21T19:03:31Z","closed_at":null,"body":"If we have profile attribute defined as follows: \r\n\r\n    <bean id=\"pattrTenantAttribute\" class=\"com.jaspersoft.jasperserver.dto.authority.ClientUserAttribute\">\r\n        <property name=\"name\" value=\"OrganizationAttributeTest\"/>\r\n        <property name=\"value\" value=\"Organization attribute test value\"/>\r\n        <property name=\"description\" value=\"Organization attribute description\"/>\r\n        <property name=\"permissionMask\" value=\"32\"/>\r\n        <property name=\"secure\" value=\"false\"/>\r\n        <property name=\"inherited\" value=\"false\"/>\r\n        <property name=\"holder\" value=\"tenant:/organization_1\"/>\r\n    </bean>\r\n\r\n(Permission mask is different than administrate)\r\n\r\nand run the following request:\r\n\r\n                    session.attributesService()\r\n                            .forOrganization(\"organization_1)\r\n                            .attribute(\"OrganizationAttributeTest\")\r\n                            .setIncludePermissions(true)\r\n                            .createOrUpdate(attribute);\r\n\r\nAttribute is created, but permission mask would be 1 (administrate)"}}