{"id":7507,"date":"2021-02-21T20:14:46","date_gmt":"2021-02-21T20:14:46","guid":{"rendered":"https:\/\/www.use-snip.com\/kb\/?post_type=ht_kb&#038;p=7507"},"modified":"2022-10-24T17:40:23","modified_gmt":"2022-10-24T17:40:23","slug":"restricting-users-by-time","status":"publish","type":"ht_kb","link":"https:\/\/www.use-snip.com\/kb\/knowledge-base\/restricting-users-by-time\/","title":{"rendered":"Restricting Users, by Time"},"content":{"rendered":"<p>This article describes how to add a <strong>Date and Time<\/strong> <strong>Restriction<\/strong> to user accounts in the <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> NTRIP Caster.<\/p>\n<h2>The Date \/ Time Restrictions tab<\/h2>\n<p>This tab is used to control the <em>Date<\/em> and <em>Time<\/em> after which a given User Account is no longer allowed to connect.\u00a0 Use this feature to restrict an individual user account, preventing it from connecting once the selected time has past.\u00a0 Use this ability with any NTRIP Client user accounts who purchase a period of Caster use from you.\u00a0 You can also set up automatic eMail notifications to be sent to the the customer (the owner of the user account) or to you as the expiration time draws near (when the eMail Plug-In is present).\u00a0 This restriction can also be combined with other restrictions.\u00a0 For example, you might create a one week test account for a potential customer with access limited to only a specific Base Station for evaluation purposes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7509\" src=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab1.png\" alt=\"\" width=\"580\" height=\"690\" srcset=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab1.png 580w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab1-252x300.png 252w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab1-42x50.png 42w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab1-320x381.png 320w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/p>\n<p>This restriction is disabled for each user account by default.<\/p>\n<p>In order to use this feature, check the box labeled <strong>Restrict User connections past&#8230;\u00a0 <\/strong>Then select a time in the future by clicking on the <em>calendar<\/em>, entering a date and time in the <em>edit box<\/em>, or by using the <strong>Add Default<\/strong> button or the <strong>Add&#8230;<\/strong> combo to select the period of time to be added.<\/p>\n<p>Pressing these buttons is cumulative.\u00a0 For example, selecting &#8220;Add 7 Days&#8221; in the combo control twice will add 2 weeks to the time.<\/p>\n<p>Pressing the <strong>Reset<\/strong> button will revert the expiration time to be the current date and time plus one hour.\u00a0 This is handy when too much time has been added.<\/p>\n<p>The time remaining is shown in a label when the restriction is active.\u00a0 A status label shows a caution when the selected expiration time is already past.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7512\" src=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab2.png\" alt=\"\" width=\"580\" height=\"690\" srcset=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab2.png 580w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab2-252x300.png 252w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab2-42x50.png 42w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab2-320x381.png 320w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/p>\n<h3>In More detail:<\/h3>\n<p>When a user with this account connects, the current date and time is checked against the restriction date and time, if the <strong>Restrict User connections past&#8230;<\/strong> checkbox is enabled.\u00a0\u00a0 If the allowed time has past, the user account is not allowed to connect, and an entry in the console log is added to inform the operator.<\/p>\n<p>Thereafter, every ~5 minutes a background task is run to once again compare the users restriction date and time with the current date and time for all currently connected user accounts using this restriction.\u00a0 If a user account is found to be connected after it&#8217;s allowed time has expired, it is disconnected from the Caster.\u00a0 An entry in the console log is added to inform the operator.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7510 alignright\" src=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab4.png\" alt=\"\" width=\"375\" height=\"270\" srcset=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab4.png 375w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab4-300x216.png 300w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab4-50x36.png 50w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab4-320x230.png 320w\" sizes=\"auto, (max-width: 375px) 100vw, 375px\" \/><\/p>\n<p>While the controls allow the operator to enter a very specific expiration time, the most common usage is to create and extend the user&#8217;s expiration time by a common value for all users.<\/p>\n<p>The <strong>Set Default Time<\/strong> button allows the <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> operator to select such a time.\u00a0 After which, the <strong>Add Default<\/strong> button will add the selected amount of time to the current user.<\/p>\n<p>The check box <strong>Active Disconnect<\/strong> will (when checked) cause any currently connected devices using this user account to be immediately disconnected when the dialog is saved, if the selected date\/time for that user is now past.<\/p>\n<p>You can use this to disconnect any active user account, or you can disconnect any active user from right-click menus found in the\u00a0 <a href=\"https:\/\/www.use-snip.com\/kb\/knowledge-base\/viewing-current-users\/\" target=\"_blank\" rel=\"noopener\">View Current Users<\/a> dialog.\u00a0 <a href=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-7511\" src=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab3.png\" alt=\"\" width=\"387\" height=\"480\" srcset=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab3.png 580w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab3-242x300.png 242w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab3-40x50.png 40w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2021\/02\/timeTab3-320x397.png 320w\" sizes=\"auto, (max-width: 387px) 100vw, 387px\" \/><\/a><\/p>\n<p>The other check boxes in this tab all deal with support for eMail (and require an active eMail Plug-In to be present for use).<\/p>\n<p>You can use the <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> eMail system to send notices to the customer account to which this user account is assigned.\u00a0 You can also send eMail to the Caster admin contact and to your firms &#8220;billing&#8221; contact (intended to help coordinate the customer invoicing events). Check the <strong>Invoice Reminder<\/strong> box to enable this.<\/p>\n<p>When you check the <strong>eMail Account Owner when due to expire<\/strong> box, <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> will automatically send out eMail reminder notices at the times you have selected to the primary eMail of the Contact associated with this user account.\u00a0 The Caster admin is copied on these if the <strong>cc Admin<\/strong> box is checked.\u00a0 These notices are sent as the restriction date and time draws near.\u00a0 Periods of <strong>1 month<\/strong> (30 days), <strong>1 week<\/strong> (7 days) and <strong>1 day<\/strong> (~24 hours) can be selected.<\/p>\n<p>Whenever a user&#8217;s restriction date and time is past, the dialog also displays how long ago this occurred.<\/p>\n<h3><strong>Notes:<\/strong><\/h3>\n<ul>\n<li>An expired a user account (this this restriction type) will not be able to reconnect until either:\n<ul>\n<li>The restriction date and time is extended<br \/>\n(Select a date beyond the current date\/time) or press the <strong>Add Default<\/strong> button)<\/li>\n<li>The restriction is made not-active<br \/>\n(Uncheck the checkbox labeled <strong>Restrict User connections past&#8230;<\/strong> ).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>When a user account has passed its restriction date and time it is shown with a small <strong>T<\/strong> in the status column of (T=time restriction) the <a href=\"https:\/\/www.use-snip.com\/kb\/knowledge-base\/managing-user-accounts\/\" target=\"_blank\" rel=\"noopener\">Manage User Accounts<\/a> dialog.<\/li>\n<li>Other active restrictions can also prevent a user from connecting.\u00a0 Whenever a user is rejected due to a specific restriction, the details are provided in the console log.<\/li>\n<\/ul>\n<p>The most typical use case is a Caster operator that wishes to set up predefined lease times that will then expire for each User Account.\u00a0 By use of this feature, the final date and time period given to User Accounts can be easily managed and the recurring process of customer renewal notices is largely automated.\u00a0 This differs from the <em>Usage Time<\/em> restriction, which can be used to limit the amount of overall time the user account can be connected to the Caster.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"padding-left: 80px;\"><span style=\"color: #008000;\"><strong> Note:<\/strong><\/span>\u00a0 The\u00a0<strong>Date and Time Restrictions<\/strong> tab is an advanced feature. It requires a <span style=\"color: #993300;\"><em><strong>Pro<\/strong> <\/em><\/span>license\u00a0 and depends on the presence of an active \u201cEnhanced User Management\u201d Plug-In to be used.<\/p>\n<p>About other <a href=\"https:\/\/www.use-snip.com\/kb\/knowledge-base\/user-accounts-adding-restrictions\/\">user account restrictions<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article describes how to add a Date and Time Restriction to user accounts in the SNIP NTRIP Caster. The Date \/ Time Restrictions tab This tab is used to control the Date and Time after which a given User Account is no longer allowed to connect.\u00a0 Use this feature [&hellip;]<\/p>\n","protected":false},"author":13,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"ht-kb-category":[283],"ht-kb-tag":[493,494,460,495],"class_list":["post-7507","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-managing-user-accounts","ht_kb_tag-customer-account","ht_kb_tag-restrictions","ht_kb_tag-time","ht_kb_tag-user-accounts"],"_links":{"self":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/7507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/comments?post=7507"}],"version-history":[{"count":15,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/7507\/revisions"}],"predecessor-version":[{"id":8589,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/7507\/revisions\/8589"}],"wp:attachment":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/media?parent=7507"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=7507"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=7507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}