
ctt55 (ctt55) asked a question.
Background
- Our Application needs a maintenance window(1 hour)
- During maintenance time, the user should not be able to use our application
- It will be convenient if okta can manage the user's sign-in and the session at that time
Questions
- How can we achieve app maintenance window with Okta?
Caring Points
- How can okta block user signing? *I am expecting to use an authentication policy
- How can okta clear an exciting session?
- Can it be scheduled?

Hi @ctt55 (ctt55) ,
Thank you for posting on the Okta community page!
First of all, from an Okta point of view, you can indeed block user access to an application through an App Sign On Policy where you can deny access to the application to every user assigned to it. Unfortunately this policy cannot be scheduled and it will have to be turned on/off at the respective time. In order to configure a Sign On policy for your application you will have to go on your Admin Dashboard >> Applications >> Your Specific App >> Sign On tab and here at the bottom of the page you will have the option to configure a new Sign On policy.
Secondly, to end an Okta user session, you can do so through APIs as explained in the documentation provided bellow:
Keep in mind that this ends the Okta user session and not the application session.
I hope the above information is helpful!