Fixed adding new policy

Jira-issue: WP-1255
Fixed setPolicy

- setPolicy now uses new getPolicy
- fixed new device insertion
- fixed new user insertion

Jira-issue: WP-1255