# Okta SSO: how to sync removing user from group

**URL:** <https://forum.pritunl.com/t/okta-sso-how-to-sync-removing-user-from-group/1251>\
**Category:** Pritunl VPN\
**Created:** [July 25, 2023, 8:31am UTC](https://forum.pritunl.com/t/okta-sso-how-to-sync-removing-user-from-group/1251 "2023-07-25T08:31:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![drhackenbush](https://forum.pritunl.com/user_avatar/forum.pritunl.com/drhackenbush/32/511_2.png) [@drhackenbush](https://forum.pritunl.com/u/drhackenbush)\
**Post date:** [July 25, 2023, 8:31am UTC](https://forum.pritunl.com/t/okta-sso-how-to-sync-removing-user-from-group/1251/1 "2023-07-25T08:31:49Z")

</div>

I’ve set up group synchronization from Okta to Pritunl. I’m using group attributes in SAML integration to send info about group membership. Works great when adding user to groups.  
However, I’m wondering if it is possible somehow to also tell Pritunl to remove user from a particular group?

If I understand that correctly, it would have to work like this:

- receive new SAML request, check what groups are present in it
- if user is a member of a group that’s not present in SAML request, and group wasn’t assigned manually in Pritunl → remove user from that group

Thanks!  
J.

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [July 25, 2023, 2:51pm UTC](https://forum.pritunl.com/t/okta-sso-how-to-sync-removing-user-from-group/1251/2 "2023-07-25T14:51:32Z")

</div>

The groups should be updated. There are some older releases that didn’t but this was changed to replace the groups on every SAML authentication. The SAML authentication only occurs when logging in to the web console and on connection only if [**single sign-on connection authentication**](https://docs.pritunl.com/docs/connection-authentication) is enabled. It will replace all the users groups including manual modifications.

---

<div class="post-metadata">

**Author:** ![drhackenbush](https://forum.pritunl.com/user_avatar/forum.pritunl.com/drhackenbush/32/511_2.png) [@drhackenbush](https://forum.pritunl.com/u/drhackenbush)\
**Post date:** [July 25, 2023, 3:55pm UTC](https://forum.pritunl.com/t/okta-sso-how-to-sync-removing-user-from-group/1251/3 "2023-07-25T15:55:26Z")

</div>

Thanks @zach \<3  
I’m running the following now:

- server: `pritunl-1.30.3354.99-1.el8.oraclelinux.x86_64`
- client: `1.3.3484.2`

`Single Sign-On Authentication` is checked in server settings.  
I see there is newer version of Pritunl server – do you think the one I’m using should be fine for that feature to work? I’ll plan upgrade nonetheless of course.

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [July 25, 2023, 5:29pm UTC](https://forum.pritunl.com/t/okta-sso-how-to-sync-removing-user-from-group/1251/4 "2023-07-25T17:29:41Z")

</div>

The first release to include this group change was `v1.30.3388.46`

---

<div class="post-metadata">

**Author:** ![drhackenbush](https://forum.pritunl.com/user_avatar/forum.pritunl.com/drhackenbush/32/511_2.png) [@drhackenbush](https://forum.pritunl.com/u/drhackenbush)\
**Post date:** [July 26, 2023, 8:16am UTC](https://forum.pritunl.com/t/okta-sso-how-to-sync-removing-user-from-group/1251/5 "2023-07-26T08:16:05Z")

</div>

I confirm it is working after I’ve upgraded pritunl server. Awesome, thanks a lot \<3
