# svySecurityExample version issue or bug?

**URL:** <https://forum.servoy.com/t/svysecurityexample-version-issue-or-bug/20476>\
**Category:** Feedback\
**Created:** [April 20, 2021, 4:29pm UTC](https://forum.servoy.com/t/svysecurityexample-version-issue-or-bug/20476 "2021-04-20T16:29:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pitc](https://avatars.discourse-cdn.com/v4/letter/p/858c86/32.png) [@pitc](https://forum.servoy.com/u/pitc)\
**Post date:** [April 20, 2021, 4:29pm UTC](https://forum.servoy.com/t/svysecurityexample-version-issue-or-bug/20476/1 "2021-04-20T16:29:32Z")

</div>

In trying out the svySecurityExample in a new workspace with Servoy version 2021.03.3462 I run the solution as is in Ng Client.  
I get the error

> The svySecurityExample requires svySecurity version 1.3.0

However the version loaded is 1.5.0  
The console errors are:

```auto
WARN com.servoy.j2db.util.Debug - Permission "Administrators" is no longer found within internal security settings.
	at K:\ServoySecurityExample\svySecurity\svySecurity.js:2785 (logWarning)
	at K:\ServoySecurityExample\svySecurity\svySecurity.js:2594 (syncPermissions)
	at K:\ServoySecurityExample\svySecurity\svySecurity.js:3321
	at K:\ServoySecurityExample\svySecurity\svySecurity.js:3319
	at K:\ServoySecurityExample\svySecurityExampleLogin\svySecExLoginDeepLink.js:24 (onSolutionOpenLogin)
ERROR com.servoy.j2db.util.Debug - The svySecurityExample requires svySecurity version 1.5.0
	at K:\ServoySecurityExample\svySecurityExampleShared\svySecExAppHelper.js:50 (log)
	at K:\ServoySecurityExample\svySecurityExampleShared\svySecExAppHelper.js:38 (logError)
	at K:\ServoySecurityExample\svySecurityExampleShared\svySecExAppMgr.js:470 (onError)

```

The code is:

```auto
    if (scopes.svySecurity.getVersion() != scopes.svySecExAppMgr.REQUIRED_SVYY_SECURITY_VERSION) {
        throw new Error('The svySecurityExample requires svySecurity version ' + scopes.svySecExAppMgr.REQUIRED_SVYY_SECURITY_VERSION);
    }

```

And the REQUIRED\_SVYY\_SECURITY\_VERSION was set to 1.3.0  
Changing it to 1.5.0 gave same result.  
Further checks show that the method: scopes.svySecurity.getVersion() is:

```auto
function getVersion() {
    return application.getVersionInfo()['svySecurity'];
}

```

The return value is null.  
So not really a version issue then?

It might all be related to the Permissions not found Error?  
The “User and Group security” under resources is not allowing me to inspect the settings. Is that normal?  
How can I set up “example” group and user settings?

This all seems rather confusing!  
Does the example need upgrading due to version 1.5.0 and recent changes (2021.04.07 webinar about tokens, sso etc)?

---

<div class="post-metadata">

**Author:** ![paronne](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/paronne/32/5096_2.png) [@paronne](https://forum.servoy.com/u/paronne)\
**Post date:** [April 21, 2021, 11:37am UTC](https://forum.servoy.com/t/svysecurityexample-version-issue-or-bug/20476/2 "2021-04-21T11:37:35Z")

</div>

Hi Tom,

The issue is due to the fact that the solution svySecurityExample doesn’t have a resource project. If you set a resource project for the solution you will be able to access the user and group security.  
Unfortunately conflicts with the resource projects aren’t nice to handle.  
The svySecurityExample itself hasn’t been updated with the latest svySecurity indeed; i don’t expect breaking changes using verison v1.5.0 of svySecurity, anyhow you can downgrade the version of svySecurity module to v1.3.0 by deleting the svySecurity module in workspace and add it again with version 1.3.0.

Regards,  
Paolo

---

<div class="post-metadata">

**Author:** ![sdevlin](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/sdevlin/32/4488_2.png) [@sdevlin](https://forum.servoy.com/u/sdevlin)\
**Post date:** [April 21, 2021, 8:07pm UTC](https://forum.servoy.com/t/svysecurityexample-version-issue-or-bug/20476/3 "2021-04-21T20:07:19Z")

</div>

Hi Tom,

I recommend the Servoy Sample solution, which is newer, well-maintained and demonstrates best practices.  
[https://github.com/Servoy/svySampleSolution](https://github.com/Servoy/svySampleSolution)

Best,  
Sean
