How user cannot manipulate the time in Sharepoint using PowerApps. I want a default time that cannot change and manipulate by users.
Related
I want to create a record of Geo Log entity for every login of the user in CRM. So, I want to take the IP Address, Browser, Operation system, Longitude, Latitude, ect. for every login of the user in the system. I want to do this in the Server side, but I am facing problems for creating a plugin for triggering the event of login of the user.
Like Zach mentioned, all these client side telemetry can be collected in JavaScript & created as a record in CRM entity using web api.
There’s no supported solution to inject the script in all forms when we don’t know where users are landing (after ADFS challenge/SSO user will land in their workspace tab based on their personal preference).
The trick is to force every user to land in a particular dashboard or entity view, adding JavaScript to any of the Ribbon button “Enable rule” to trigger & execute the snippet. You can use form load script on entity form or Application Ribbon (always visible button) too.
Server side - never mind. For your satisfaction you can do a custom Action to create data in entity & data can be passed from JavaScript to that custom Action as parameters.
I'm using Google Analytics to track user behavior. In order to get actionable insights, one thing I have to track is the session duration for users. Is it possible to track session duration for each user on Google Analytics by sending user-id?
With the User Explorer Report of GA you get an individual view of each user and the actions that he conducted on your website from the time of acquisition to the point of exist and at times to when the user comes back.
about the user id feature
User ID lets you associate a persistent ID for a single user with that user's engagement data from one or more sessions initiated from one or more devices.
Analytics interprets each unique user ID as a separate user, which provides a more accurate user count in your reports.
So setting user id is an internal field used by google for processing of your data. This is not a field you will be able to see so it will be hard for you to analytics things based upon this user id.
However you could send the userid with all the calls as a custom dimension this will enable you to add the dimension to your reports.
Looking for the developer documentation as to how to modify a users application assignment. I would like to programatically assign, unassign and change the assignment details (ex: roles). So far I can't find that in the developer docs.
You can directly assign and remove users from applications via the Application User Operations.
Depending on what logic you're trying to implement, it might be better to:
Assign the users to groups. You can even setup rules to do this for you automatically based on conditions.
Add the group to the app
By using groups rather than assigning users to the app directly, you can automate more of the flow (i.e. users can be assigned to apps automatically based on user properties and conditions), as well as setup Sign-On, MFA, and password policies.
based on the following question/answer
CodeIgniter session class not working in Chrome
I had the problem where people are unable to login to my website from another country which is far from the US server. After searching online I've stumbled upon a suggestion which describes how the the problem is based on the difference between the server's timezone and the user's timezone. So, by extending the session_expiration I've managed to get around the problem and people are able to log in successfully.
My questions is whether the sess_time_to_update creates a new timestamp and it will logout the user because the new timestamp is in the wrong timezone? Do I have to make the new sess_time_to_update 17+ hours so that it covers the broadest range of timezones as explained in the question that I've linked. Is there some other way of storing the session at the user's browser based on their localtime (without asking them to choose timezones in the profiles and other sorts of user unfriendly schemes). I would like to have a 2h default session expiration time + the 800sec. update time. I'm not using the database to store the session and I would rather not use it.
The sess_time_to_update setting is how often the session details (such as last activity) are updated. The default is every 5 minutes (300 seconds) and a new session ID will be generated. This would reset the expiration date based on the sess_expiration setting.
I would suggest keeping the sess_time_to_update at the default (or lower) as that would keep the user session alive longer since the session expiration would keep getting reset. The only setting that may need to remain high would be sess_expiration, that is unless you can determine the users timezone.
There are a couple of ways you could try to determine the users timezone. One would be Javascript (Example: Client Side Timezone Offsetting) or you could try using PHP's GEOIP Methods.
I am playing with a timezones and I have a simple registration form. after user's registration, I would like to user display his current time, how to do that?
You can not do it only with Ruby, because such information isn't available on the server side.
1) If you know the user's location, you can do geo locating and determine the timezone. But it could be a problem if ip range you got from geo database has a few timezones.
2) Another solution, you can use javascript to help. So, with javascript you can calculate timezone and set it as cookie, and then access with Ruby from the request object. (How to get timezone with Javascript)
You could ask the user for their current timezone during registration and persist it with their user details.
ActiveSupport (included as part of the Rails API) has a great way to deal with timezones, you can convert the current time to a time in a different timezone using *in_time_zone*.
As an example
Time.now.in_time_zone("America/Guyana")
Time.now.in_time_zone(8)
Where the time_zone key can be found via this API document: http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html
See TimeWithZone for more info, http://api.rubyonrails.org/classes/ActiveSupport/TimeWithZone.html#method-i-in_time_zone.